diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2020-02-05 17:08:37 +0000 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-03-25 22:36:03 -0400 |
commit | 17eef488351b3cbf5712a4d4da1313e3a52f995d (patch) | |
tree | 0cd95d853da6d58b34ce30556816d612896b0c3b /gtk/gtkwidget.h | |
parent | 7ffea02eb4d8bccfa66467184762a36adcb40b93 (diff) | |
download | gtk+-17eef488351b3cbf5712a4d4da1313e3a52f995d.tar.gz |
Allow installing bindings bound to actions
This is just convenience code around GtkShortcut, just like bindings for
signal emission and callback invocation.
Diffstat (limited to 'gtk/gtkwidget.h')
-rw-r--r-- | gtk/gtkwidget.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gtk/gtkwidget.h b/gtk/gtkwidget.h index 40af2c6a18..d9d0a30932 100644 --- a/gtk/gtkwidget.h +++ b/gtk/gtkwidget.h @@ -390,6 +390,14 @@ void gtk_widget_class_add_binding_signal const gchar *format_string, ...); GDK_AVAILABLE_IN_ALL +void gtk_widget_class_add_binding_action + (GtkWidgetClass *widget_class, + GdkModifierType mods, + guint keyval, + const gchar *action_name, + const gchar *format_string, + ...); +GDK_AVAILABLE_IN_ALL void gtk_widget_class_add_shortcut (GtkWidgetClass *widget_class, GtkShortcut *shortcut); |