Skip to content

Commit

Permalink
gtk: Don't use arguments param for WidgetClass.add_binding*
Browse files Browse the repository at this point in the history
  • Loading branch information
bilelmoussaoui committed Feb 1, 2024
1 parent dab4eff commit 6938071
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions gtk4/src/subclass/widget.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1031,12 +1031,7 @@ pub unsafe trait WidgetClassExt: ClassStruct {
}

#[doc(alias = "gtk_widget_class_add_binding_action")]
fn add_binding_action(
&mut self,
keyval: gdk::Key,
mods: gdk::ModifierType,
action_name: &str,
) {
fn add_binding_action(&mut self, keyval: gdk::Key, mods: gdk::ModifierType, action_name: &str) {
let shortcut = crate::Shortcut::new(
Some(crate::KeyvalTrigger::new(keyval, mods)),
Some(crate::NamedAction::new(action_name)),
Expand All @@ -1045,12 +1040,7 @@ pub unsafe trait WidgetClassExt: ClassStruct {
}

#[doc(alias = "gtk_widget_class_add_binding_signal")]
fn add_binding_signal(
&mut self,
keyval: gdk::Key,
mods: gdk::ModifierType,
signal_name: &str,
) {
fn add_binding_signal(&mut self, keyval: gdk::Key, mods: gdk::ModifierType, signal_name: &str) {
let type_ = <Self::Type as ObjectSubclassType>::type_();
assert!(
SignalId::lookup(signal_name, type_).is_some(),
Expand Down

0 comments on commit 6938071

Please sign in to comment.