diff --git a/gtk4/src/subclass/widget.rs b/gtk4/src/subclass/widget.rs index ba7c14ab0a43..e7155765f29f 100644 --- a/gtk4/src/subclass/widget.rs +++ b/gtk4/src/subclass/widget.rs @@ -1008,11 +1008,7 @@ pub unsafe trait WidgetClassExt: ClassStruct { #[doc(alias = "gtk_widget_class_add_binding")] fn add_binding< - F: Fn( - &<::Type as ObjectSubclass>::Type, - Option<&Variant>, - ) -> glib::Propagation - + 'static, + F: Fn(&<::Type as ObjectSubclass>::Type) -> glib::Propagation + 'static, >( &mut self, keyval: gdk::Key, @@ -1022,8 +1018,8 @@ pub unsafe trait WidgetClassExt: ClassStruct { let shortcut = crate::Shortcut::new( Some(crate::KeyvalTrigger::new(keyval, mods)), Some(crate::CallbackAction::new( - move |widget, args| -> glib::Propagation { - unsafe { callback(widget.unsafe_cast_ref(), args) } + move |widget, _| -> glib::Propagation { + unsafe { callback(widget.unsafe_cast_ref()) } }, )), );