summaryrefslogtreecommitdiff
path: root/gtk/gtkshortcutcontroller.h
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2018-08-19 07:12:00 +0200
committerMatthias Clasen <mclasen@redhat.com>2020-03-25 23:14:27 -0400
commita1e9ae5259224a6ae51fc4fda6cb6e9741d7b0b3 (patch)
tree2a5b4c59458ef8c24e14213e9121fac41fe42da3 /gtk/gtkshortcutcontroller.h
parente738a4d1291f94d7c73061c446de7630ac214e34 (diff)
downloadgtk+-a1e9ae5259224a6ae51fc4fda6cb6e9741d7b0b3.tar.gz
shortcutcontroller: Add gtk_shortcut_controller_new_for_model()
This is mainly for internal use, but I can't see a reason to not have it public for people who want to maintain their own lists. I'm sure gnome-builder will never ever find a way to misuse it.
Diffstat (limited to 'gtk/gtkshortcutcontroller.h')
-rw-r--r--gtk/gtkshortcutcontroller.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkshortcutcontroller.h b/gtk/gtkshortcutcontroller.h
index fb31ffe8cb..aeb50e7f91 100644
--- a/gtk/gtkshortcutcontroller.h
+++ b/gtk/gtkshortcutcontroller.h
@@ -44,6 +44,8 @@ GType gtk_shortcut_controller_get_type (void) G
GDK_AVAILABLE_IN_ALL
GtkEventController * gtk_shortcut_controller_new (void);
+GDK_AVAILABLE_IN_ALL
+GtkEventController * gtk_shortcut_controller_new_for_model (GListModel *list);
GDK_AVAILABLE_IN_ALL
void gtk_shortcut_controller_set_mnemonics_modifiers (GtkShortcutController *self,