diff options
author | Matthias Clasen <mclasen@redhat.com> | 2015-11-22 02:24:12 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-11-22 22:41:48 -0500 |
commit | 304c5ac226b5254e6ced7ad3f5e81b89481b694e (patch) | |
tree | 5951538fe7b2d49f6b30bf4153a42fe7cb7bb023 /gtk/gtkshortcutsshortcut.h | |
parent | 62620a52446399e5e1865af4d958c3f8f9c87add (diff) | |
download | gtk+-304c5ac226b5254e6ced7ad3f5e81b89481b694e.tar.gz |
shortcuts: Add support for standard gestures
Add an enum for gestures that GtkShortcutsShortcut knows how
to show an image and subtitle for.
https://bugzilla.gnome.org/show_bug.cgi?id=758187
Diffstat (limited to 'gtk/gtkshortcutsshortcut.h')
-rw-r--r-- | gtk/gtkshortcutsshortcut.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/gtk/gtkshortcutsshortcut.h b/gtk/gtkshortcutsshortcut.h index 57d76ad60e..435e1bf06d 100644 --- a/gtk/gtkshortcutsshortcut.h +++ b/gtk/gtkshortcutsshortcut.h @@ -34,6 +34,42 @@ G_BEGIN_DECLS typedef struct _GtkShortcutsShortcut GtkShortcutsShortcut; typedef struct _GtkShortcutsShortcutClass GtkShortcutsShortcutClass; +/** + * GtkShortcutType: + * @GTK_SHORTCUT_ACCELERATOR: + * The shortcut is a keyboard accelerator. The #GtkShortcutsShortcut:accelerator + * property will be used. + * @GTK_SHORTCUT_GESTURE_PINCH: + * The shortcut is a pinch gesture. GTK+ provides and icon and subtitle. + * @GTK_SHORTCUT_GESTURE_STRETCH: + * The shortcut is a stretch gesture. GTK+ provides and icon and subtitle. + * @GTK_SHORTCUT_GESTURE_ROTATE_CLOCKWISE: + * The shortcut is a clockwise rotation gesture. GTK+ provides and icon and subtitle. + * @GTK_SHORTCUT_GESTURE_ROTATE_COUNTERCLOCKWISE: + * The shortcut is a counterclockwise rotation gesture. GTK+ provides and icon and subtitle. + * @GTK_SHORTCUT_GESTURE_TWO_FINGER_SWIPE_LEFT: + * The shortcut is a two-finger swipe gesture. GTK+ provides and icon and subtitle. + * @GTK_SHORTCUT_GESTURE_TWO_FINGER_SWIPE_RIGHT: + * The shortcut is a two-finger swipe gesture. GTK+ provides and icon and subtitle. + * @GTK_SHORTCUT_GESTURE: + * The shortcut is a gesture. The #GtkShortcutsShortcut:icon property will be + * used. + * + * GtkShortcutType specifies the kind of shortcut that is being described. + * More values may be added to this enumeration over time. + * + * Since: 3.20 + */ +typedef enum { + GTK_SHORTCUT_ACCELERATOR, + GTK_SHORTCUT_GESTURE_PINCH, + GTK_SHORTCUT_GESTURE_STRETCH, + GTK_SHORTCUT_GESTURE_ROTATE_CLOCKWISE, + GTK_SHORTCUT_GESTURE_ROTATE_COUNTERCLOCKWISE, + GTK_SHORTCUT_GESTURE_TWO_FINGER_SWIPE_LEFT, + GTK_SHORTCUT_GESTURE_TWO_FINGER_SWIPE_RIGHT, + GTK_SHORTCUT_GESTURE +} GtkShortcutType; GDK_AVAILABLE_IN_3_20 GType gtk_shortcuts_shortcut_get_type (void) G_GNUC_CONST; |