[gtk/wip/matthiasc/shortcut-4: 99/149] widget: Name the controllers
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/matthiasc/shortcut-4: 99/149] widget: Name the controllers
- Date: Wed, 25 Mar 2020 20:39:22 +0000 (UTC)
commit b8c96e10cd22945f937450b9c8650f928ea26566
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Mar 15 18:20:58 2020 -0400
widget: Name the controllers
gtk/gtkwidget.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index a7e029ad93..1eb12c0806 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -2451,6 +2451,7 @@ gtk_widget_init (GTypeInstance *instance, gpointer g_class)
gtk_widget_set_layout_manager (widget, g_object_new (layout_manager_type, NULL));
controller = gtk_shortcut_controller_new_for_model (G_LIST_MODEL (GTK_WIDGET_CLASS
(g_class)->priv->shortcuts));
+ gtk_event_controller_set_name (controller, "gtk-widget-class-shortcuts");
gtk_widget_add_controller (widget, controller);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]