diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-03-19 18:03:16 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-03-19 18:03:16 -0400 |
commit | 31db61588543a1ba0935ac8ecb2ecac574c0a836 (patch) | |
tree | a2e2092e086a9c7d618e2c9ae1fc7b5a659e8a7a /gtk/gtkinfobar.c | |
parent | 3ac4c76b18cc89a841ce09f0943539f16988fd21 (diff) | |
download | gtk+-31db61588543a1ba0935ac8ecb2ecac574c0a836.tar.gz |
Revert "Merge branch 'disable-window-test' into 'master'"
This reverts commit 3ac4c76b18cc89a841ce09f0943539f16988fd21, reversing
changes made to 6ec96d2e989d029a303b8b20ec72b86f974c0e87.
Diffstat (limited to 'gtk/gtkinfobar.c')
-rw-r--r-- | gtk/gtkinfobar.c | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/gtk/gtkinfobar.c b/gtk/gtkinfobar.c index 49c98a391d..b265373831 100644 --- a/gtk/gtkinfobar.c +++ b/gtk/gtkinfobar.c @@ -39,6 +39,7 @@ #include "gtklabel.h" #include "gtkbutton.h" #include "gtkenums.h" +#include "gtkbindings.h" #include "gtkdialog.h" #include "gtkrevealer.h" #include "gtkintl.h" @@ -377,9 +378,14 @@ gtk_info_bar_dispose (GObject *object) static void gtk_info_bar_class_init (GtkInfoBarClass *klass) { - GObjectClass *object_class = G_OBJECT_CLASS (klass); - GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass); - GtkContainerClass *container_class = GTK_CONTAINER_CLASS (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); object_class->get_property = gtk_info_bar_get_property; object_class->set_property = gtk_info_bar_set_property; @@ -463,10 +469,9 @@ gtk_info_bar_class_init (GtkInfoBarClass *klass) NULL, G_TYPE_NONE, 0); - gtk_widget_class_add_binding_signal (widget_class, - GDK_KEY_Escape, 0, - "close", - NULL); + binding_set = gtk_binding_set_by_class (klass); + + gtk_binding_entry_add_signal (binding_set, GDK_KEY_Escape, 0, "close", 0); gtk_widget_class_set_css_name (widget_class, I_("infobar")); gtk_widget_class_set_layout_manager_type (widget_class, GTK_TYPE_BIN_LAYOUT); |