diff options
author | Felix Riemann <friemann@gnome.org> | 2016-10-13 16:36:47 +0200 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2016-10-13 15:02:36 -0400 |
commit | b6cdc3961a20f2f8be25c67c8eb7a0a4a0bada51 (patch) | |
tree | 7faf9d12bbcb83a863f6f821bcc1ca1af7440a2c /gtk/gtkshortcutsshortcut.c | |
parent | 21fa12120c7047a5c042efd457ce2df4423a68ea (diff) | |
download | gtk+-b6cdc3961a20f2f8be25c67c8eb7a0a4a0bada51.tar.gz |
GtkShortcutsShortcut: Support single finger swipe gestures
https://bugzilla.gnome.org/show_bug.cgi?id=772770
Diffstat (limited to 'gtk/gtkshortcutsshortcut.c')
-rw-r--r-- | gtk/gtkshortcutsshortcut.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gtk/gtkshortcutsshortcut.c b/gtk/gtkshortcutsshortcut.c index ca06eabcfc..1767f0dff6 100644 --- a/gtk/gtkshortcutsshortcut.c +++ b/gtk/gtkshortcutsshortcut.c @@ -156,6 +156,14 @@ update_subtitle_from_type (GtkShortcutsShortcut *self) subtitle = _("Two finger swipe right"); break; + case GTK_SHORTCUT_GESTURE_SWIPE_LEFT: + subtitle = _("Swipe left"); + break; + + case GTK_SHORTCUT_GESTURE_SWIPE_RIGHT: + subtitle = _("Swipe right"); + break; + default: subtitle = NULL; break; @@ -223,6 +231,14 @@ update_icon_from_type (GtkShortcutsShortcut *self) icon = g_themed_icon_new ("gesture-two-finger-swipe-right-symbolic"); break; + case GTK_SHORTCUT_GESTURE_SWIPE_LEFT: + icon = g_themed_icon_new ("gesture-swipe-left-symbolic"); + break; + + case GTK_SHORTCUT_GESTURE_SWIPE_RIGHT: + icon = g_themed_icon_new ("gesture-swipe-right-symbolic"); + break; + default: ; icon = NULL; break; |