[gtk+] GtkGesture: minor cleanup
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GtkGesture: minor cleanup
- Date: Fri, 24 Jul 2015 11:47:35 +0000 (UTC)
commit 862cac7fe63c712d54936548a245707f2a966e78
Author: Carlos Garnacho <carlosg gnome org>
Date: Fri Jul 24 11:47:27 2015 +0200
GtkGesture: minor cleanup
We're not really using the coordinates in that function, we just
double check it's not an unrelated event.
gtk/gtkgesture.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkgesture.c b/gtk/gtkgesture.c
index 826b741..15111c5 100644
--- a/gtk/gtkgesture.c
+++ b/gtk/gtkgesture.c
@@ -417,9 +417,8 @@ _gtk_gesture_update_point (GtkGesture *gesture,
GdkDevice *device;
gboolean existed;
PointData *data;
- gdouble x, y;
- if (!gdk_event_get_coords (event, &x, &y))
+ if (!gdk_event_get_coords (event, NULL, NULL))
return FALSE;
device = gdk_event_get_device (event);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]