[gtk/shortcuts-rebased-again: 118/135] widget: Unset propagation limits for shortcut managers



commit 7a1fa1d1eae70f756303ecb2ea7f5555785ac0ee
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Jun 21 20:56:29 2019 +0000

    widget: Unset propagation limits for shortcut managers
    
    These controllers are meant to be global and
    thus should be able to react to events that are
    getting routed to open popovers. This makes
    shortcuts in open popover menus work.

 gtk/gtkwidget.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 1d67f18a2b..976fde4a7e 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -2881,12 +2881,14 @@ gtk_widget_init (GTypeInstance *instance, gpointer g_class)
       g_object_set_data_full (G_OBJECT (widget), "gtk-shortcut-manager-bubble", model, g_object_unref);
       controller = gtk_shortcut_controller_new_for_model (G_LIST_MODEL (model));
       gtk_event_controller_set_name (controller, "shortcut manager bubble");
+      gtk_event_controller_set_propagation_limit (controller, GTK_LIMIT_NONE);
       gtk_widget_add_controller (widget, controller);
 
       model = gtk_concat_model_new (GTK_TYPE_SHORTCUT);
       g_object_set_data_full (G_OBJECT (widget), "gtk-shortcut-manager-capture", model, g_object_unref);
       controller = gtk_shortcut_controller_new_for_model (G_LIST_MODEL (model));
       gtk_event_controller_set_name (controller, "shortcut manager capture");
+      gtk_event_controller_set_propagation_limit (controller, GTK_LIMIT_NONE);
       gtk_event_controller_set_propagation_phase (controller, GTK_PHASE_CAPTURE);
       gtk_widget_add_controller (widget, controller);
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]