[gtk/shortcuts-rebased-again: 117/159] widget: Unset propagation limits for shortcut managers
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/shortcuts-rebased-again: 117/159] widget: Unset propagation limits for shortcut managers
- Date: Mon, 24 Jun 2019 11:44:59 +0000 (UTC)
commit 1798edc9c5ed72c3a97a4b177f41ee8b811b0523
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 c97120218c..a83a39c875 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]