[gtk+/gtk-3-22] gtkgesturesingle: Fallback to GtkGesture handling on GDK_TOUCHPAD_SWIPE
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-22] gtkgesturesingle: Fallback to GtkGesture handling on GDK_TOUCHPAD_SWIPE
- Date: Thu, 2 Mar 2017 17:24:32 +0000 (UTC)
commit 76af1904db67c6f14cb4d68d799cd004cb64411f
Author: Carlos Garnacho <carlosg gnome org>
Date: Thu Mar 2 18:14:00 2017 +0100
gtkgesturesingle: Fallback to GtkGesture handling on GDK_TOUCHPAD_SWIPE
There are GtkGestureSingle subclasses that can be made to handle multiple
fingers (GtkGestureSingle is a subclass of GtkGesture, and not the
opposite, after all). And GtkGestureSwipe already tries to handle
GDK_TOUCHPAD_SWIPE events, except this event handler silently ignores
those.
Falling back to the GtkGesture generic handler which already
handles touchpad gesture events fixes this.
gtk/gtkgesturesingle.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkgesturesingle.c b/gtk/gtkgesturesingle.c
index 5aa0978..7e3a5e8 100644
--- a/gtk/gtkgesturesingle.c
+++ b/gtk/gtkgesturesingle.c
@@ -193,6 +193,7 @@ gtk_gesture_single_handle_event (GtkEventController *controller,
break;
case GDK_TOUCH_CANCEL:
case GDK_GRAB_BROKEN:
+ case GDK_TOUCHPAD_SWIPE:
return GTK_EVENT_CONTROLLER_CLASS (gtk_gesture_single_parent_class)->handle_event (controller,
event);
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]