diff options
author | Benjamin Otte <otte@redhat.com> | 2018-08-20 09:18:59 +0200 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-03-25 23:14:28 -0400 |
commit | fb6a8f5fc154376895fa1e665d1bdf3bec8f993c (patch) | |
tree | a5a485bef3d3de8a27f9b2d4618bef4def73eb47 /gtk/gtkshortcuttrigger.h | |
parent | c2e2e2993b106b44e7b86ca15e5ef1e3eead3aeb (diff) | |
download | gtk+-fb6a8f5fc154376895fa1e665d1bdf3bec8f993c.tar.gz |
shortcuttrigger: Add hash(), equal(), and compare() functions
Those are useful for putting triggers in hash tables or getting sorted
output.
Diffstat (limited to 'gtk/gtkshortcuttrigger.h')
-rw-r--r-- | gtk/gtkshortcuttrigger.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gtk/gtkshortcuttrigger.h b/gtk/gtkshortcuttrigger.h index c9b499e74d..85bbd441ff 100644 --- a/gtk/gtkshortcuttrigger.h +++ b/gtk/gtkshortcuttrigger.h @@ -76,6 +76,15 @@ gboolean gtk_shortcut_trigger_print_label (GtkShortcutTrig GString *string); GDK_AVAILABLE_IN_ALL +guint gtk_shortcut_trigger_hash (gconstpointer trigger); +GDK_AVAILABLE_IN_ALL +gboolean gtk_shortcut_trigger_equal (gconstpointer trigger1, + gconstpointer trigger2); +GDK_AVAILABLE_IN_ALL +gint gtk_shortcut_trigger_compare (gconstpointer trigger1, + gconstpointer trigger2); + +GDK_AVAILABLE_IN_ALL gboolean gtk_shortcut_trigger_trigger (GtkShortcutTrigger *self, GdkEvent *event, gboolean enable_mnemonics); |