[gtk/wip/matthiasc/shortcut-2: 49/88] widget: Name the controllers



commit ff78b765fb61bd2537fc6a59a2e83f6522678944
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 121d3f5e62..7826d1a534 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -2468,6 +2468,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]