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



commit 0f6b3307e66921702f2c3516a4c7879f6654b381
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 079f25d78c..c080cd1834 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]