[gtk+] gtkgesturesingle: Fallback to GtkGesture handling on GDK_TOUCHPAD_SWIPE



commit ed34be8bb3ea983f78c23ea922d14f511f6a2409
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]