diff options
author | Benjamin Otte <otte@redhat.com> | 2018-08-12 15:41:53 +0200 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-03-25 22:36:03 -0400 |
commit | d5fa5b959491dc3d7ec4dc91fef9565027be1d5d (patch) | |
tree | 2b10ad2b2cfc4f57aa7c3c9432d230c4ab01c419 /gtk/gtkshortcutswindow.c | |
parent | 2e5fc35e51e9e8f689c4f217cb7715813b411a52 (diff) | |
download | gtk+-d5fa5b959491dc3d7ec4dc91fef9565027be1d5d.tar.gz |
shortcutswindow: Port bindings to use shortcuts
Diffstat (limited to 'gtk/gtkshortcutswindow.c')
-rw-r--r-- | gtk/gtkshortcutswindow.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/gtk/gtkshortcutswindow.c b/gtk/gtkshortcutswindow.c index 292b1171be..a2d580f0eb 100644 --- a/gtk/gtkshortcutswindow.c +++ b/gtk/gtkshortcutswindow.c @@ -20,7 +20,6 @@ #include "gtkshortcutswindowprivate.h" -#include "gtkbindings.h" #include "gtkbox.h" #include "gtkgrid.h" #include "gtkheaderbar.h" @@ -774,7 +773,6 @@ gtk_shortcuts_window_class_init (GtkShortcutsWindowClass *klass) GObjectClass *object_class = G_OBJECT_CLASS (klass); GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass); GtkContainerClass *container_class = GTK_CONTAINER_CLASS (klass); - GtkBindingSet *binding_set = gtk_binding_set_by_class (klass); object_class->constructed = gtk_shortcuts_window_constructed; object_class->finalize = gtk_shortcuts_window_finalize; @@ -856,8 +854,14 @@ gtk_shortcuts_window_class_init (GtkShortcutsWindowClass *klass) G_TYPE_NONE, 0); - gtk_binding_entry_add_signal (binding_set, GDK_KEY_Escape, 0, "close", 0); - gtk_binding_entry_add_signal (binding_set, GDK_KEY_f, GDK_CONTROL_MASK, "search", 0); + gtk_widget_class_add_binding_signal (widget_class, + GDK_KEY_Escape, 0, + "close", + NULL); + gtk_widget_class_add_binding_signal (widget_class, + GDK_KEY_f, GDK_CONTROL_MASK, + "search", + NULL); g_type_ensure (GTK_TYPE_SHORTCUTS_GROUP); g_type_ensure (GTK_TYPE_SHORTCUTS_SHORTCUT); |