[eog] EogScrollView: Set the event mask bit for touchpad gestures



commit 456b3664738dac11898e0ee0dea41f4994da1065
Author: Carlos Garnacho <carlosg gnome org>
Date:   Fri Aug 14 13:56:00 2015 +0200

    EogScrollView: Set the event mask bit for touchpad gestures
    
    This will be enough for the GtkGestureZoom/Rotate gestures to pick
    these events and emit the right signals.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=753627

 src/eog-scroll-view.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/eog-scroll-view.c b/src/eog-scroll-view.c
index 5d7290f..7111858 100644
--- a/src/eog-scroll-view.c
+++ b/src/eog-scroll-view.c
@@ -2806,6 +2806,9 @@ eog_scroll_view_init (EogScrollView *view)
 
        gtk_widget_add_events (GTK_WIDGET (priv->display),
                               GDK_EXPOSURE_MASK
+#if GTK_CHECK_VERSION (3, 17, 7)
+                              | GDK_TOUCHPAD_GESTURE_MASK
+#endif
                               | GDK_BUTTON_PRESS_MASK
                               | GDK_BUTTON_RELEASE_MASK
                               | GDK_POINTER_MOTION_MASK


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]