diff options
author | Benjamin Otte <otte@redhat.com> | 2018-08-12 16:57:37 +0200 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-03-25 22:36:03 -0400 |
commit | 6a005c815e011a59cb92d2200d5c250a14c90d7b (patch) | |
tree | 722b05c194147e86430ed77df79d982b3ce6708e /gtk/gtkinfobar.c | |
parent | cb09211aced0e2779b29319cfb852b4ffa7c3ce8 (diff) | |
download | gtk+-6a005c815e011a59cb92d2200d5c250a14c90d7b.tar.gz |
infobar: Port bindings to use shortcuts
Diffstat (limited to 'gtk/gtkinfobar.c')
-rw-r--r-- | gtk/gtkinfobar.c | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/gtk/gtkinfobar.c b/gtk/gtkinfobar.c index b265373831..49c98a391d 100644 --- a/gtk/gtkinfobar.c +++ b/gtk/gtkinfobar.c @@ -39,7 +39,6 @@ #include "gtklabel.h" #include "gtkbutton.h" #include "gtkenums.h" -#include "gtkbindings.h" #include "gtkdialog.h" #include "gtkrevealer.h" #include "gtkintl.h" @@ -378,14 +377,9 @@ gtk_info_bar_dispose (GObject *object) static void gtk_info_bar_class_init (GtkInfoBarClass *klass) { - GObjectClass *object_class; - GtkWidgetClass *widget_class; - GtkContainerClass *container_class; - GtkBindingSet *binding_set; - - object_class = G_OBJECT_CLASS (klass); - widget_class = GTK_WIDGET_CLASS (klass); - container_class = GTK_CONTAINER_CLASS (klass); + GObjectClass *object_class = G_OBJECT_CLASS (klass); + GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass); + GtkContainerClass *container_class = GTK_CONTAINER_CLASS (klass); object_class->get_property = gtk_info_bar_get_property; object_class->set_property = gtk_info_bar_set_property; @@ -469,9 +463,10 @@ gtk_info_bar_class_init (GtkInfoBarClass *klass) NULL, G_TYPE_NONE, 0); - binding_set = gtk_binding_set_by_class (klass); - - gtk_binding_entry_add_signal (binding_set, GDK_KEY_Escape, 0, "close", 0); + gtk_widget_class_add_binding_signal (widget_class, + GDK_KEY_Escape, 0, + "close", + NULL); gtk_widget_class_set_css_name (widget_class, I_("infobar")); gtk_widget_class_set_layout_manager_type (widget_class, GTK_TYPE_BIN_LAYOUT); |