[gtk+] gesture drag: Use GdkEvent API
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gesture drag: Use GdkEvent API
- Date: Tue, 19 Sep 2017 17:16:30 +0000 (UTC)
commit b5b84e6abe594e4b96ce1adf9f4c68f39db71f75
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Aug 26 10:52:06 2017 -0400
gesture drag: Use GdkEvent API
gtk/gtkgesturedrag.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkgesturedrag.c b/gtk/gtkgesturedrag.c
index f82d13d..b384f4d 100644
--- a/gtk/gtkgesturedrag.c
+++ b/gtk/gtkgesturedrag.c
@@ -65,10 +65,12 @@ gtk_gesture_drag_filter_event (GtkEventController *controller,
if (gdk_event_get_event_type (event) == GDK_TOUCHPAD_SWIPE)
{
guint n_points;
+ guint n_fingers;
g_object_get (G_OBJECT (controller), "n-points", &n_points, NULL);
+ gdk_event_get_touchpad_gesture_n_fingers (event, &n_fingers);
- if (event->touchpad_swipe.n_fingers == n_points)
+ if (n_fingers == n_points)
return FALSE;
else
return TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]