From 3b595f57200d038905a1ff161a66e8507e4d4257 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Mon, 20 Aug 2018 04:18:28 +0200 Subject: widget: Keep keybindings as a GListStore This way, we can use shortcut_controller_new_for_model() and avoid all the special casing about run_class. --- gtk/gtkshortcutcontroller.c | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'gtk/gtkshortcutcontroller.c') diff --git a/gtk/gtkshortcutcontroller.c b/gtk/gtkshortcutcontroller.c index d5d47b239d..f2afe0354c 100644 --- a/gtk/gtkshortcutcontroller.c +++ b/gtk/gtkshortcutcontroller.c @@ -53,7 +53,6 @@ struct _GtkShortcutController GdkModifierType mnemonics_modifiers; guint custom_shortcuts : 1; - guint run_class : 1; guint run_managed : 1; }; @@ -246,17 +245,6 @@ gtk_shortcut_controller_run_controllers (GtkEventController *controller, return TRUE; } - if (self->run_class) - { - widget = gtk_event_controller_get_widget (controller); - - for (l = gtk_widget_class_get_shortcuts (GTK_WIDGET_GET_CLASS (widget)); l; l = l->next) - { - if (gtk_shortcut_controller_trigger_shortcut (self, l->data, event, enable_mnemonics)) - return TRUE; - } - } - if (self->run_managed) { GtkPropagationPhase current_phase = gtk_event_controller_get_propagation_phase (controller); @@ -495,13 +483,6 @@ gtk_shortcut_controller_new_for_model (GListModel *model) NULL); } -void -gtk_shortcut_controller_set_run_class (GtkShortcutController *controller, - gboolean run_class) -{ - controller->run_class = run_class; -} - void gtk_shortcut_controller_set_run_managed (GtkShortcutController *controller, gboolean run_managed) -- cgit v1.2.1