summaryrefslogtreecommitdiff
path: root/gtk/gtkshortcutcontroller.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2018-08-20 04:18:28 +0200
committerMatthias Clasen <mclasen@redhat.com>2020-03-25 23:14:27 -0400
commit3cd4eb0310a1ad9c49c22585f5fd0c9e00802c32 (patch)
tree6ba2f8c0cc95bbc7f770c07d9aea451efc606a4d /gtk/gtkshortcutcontroller.c
parenta1e9ae5259224a6ae51fc4fda6cb6e9741d7b0b3 (diff)
downloadgtk+-3cd4eb0310a1ad9c49c22585f5fd0c9e00802c32.tar.gz
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.
Diffstat (limited to 'gtk/gtkshortcutcontroller.c')
-rw-r--r--gtk/gtkshortcutcontroller.c19
1 files changed, 0 insertions, 19 deletions
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);
@@ -496,13 +484,6 @@ gtk_shortcut_controller_new_for_model (GListModel *model)
}
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)
{