[gtk+/wip/carlosg/private-event-structs] gesture drag: Use GdkEvent API
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/carlosg/private-event-structs] gesture drag: Use GdkEvent API
- Date: Sat, 26 Aug 2017 14:59:20 +0000 (UTC)
commit 5d6267fe11c35f04d12e730e0743eb20b0095ac6
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]