diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-04-03 22:41:15 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-04-03 22:41:15 -0400 |
commit | 1424dd9786999a50f7351805a418bfb8f3bdd221 (patch) | |
tree | eab4b08da8b5df7b2f7b08e2f6586ce4d399a633 /gtk/gtkshortcutaction.h | |
parent | 9a2f7338dfd3c01bb56e2009684987a51f019119 (diff) | |
download | gtk+-1424dd9786999a50f7351805a418bfb8f3bdd221.tar.gz |
Add an api to parse shortcut actions
This is so we can test this code. While doing it
I also fixed the missing else that was caused it
not to work.
Diffstat (limited to 'gtk/gtkshortcutaction.h')
-rw-r--r-- | gtk/gtkshortcutaction.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtkshortcutaction.h b/gtk/gtkshortcutaction.h index d599344922..2fa2760324 100644 --- a/gtk/gtkshortcutaction.h +++ b/gtk/gtkshortcutaction.h @@ -61,6 +61,9 @@ GDK_DECLARE_INTERNAL_TYPE (GtkShortcutAction, gtk_shortcut_action, GTK, SHORTCUT GDK_AVAILABLE_IN_ALL char * gtk_shortcut_action_to_string (GtkShortcutAction *self); GDK_AVAILABLE_IN_ALL +GtkShortcutAction * gtk_shortcut_action_parse_string (const char * string); + +GDK_AVAILABLE_IN_ALL void gtk_shortcut_action_print (GtkShortcutAction *self, GString *string); GDK_AVAILABLE_IN_ALL |