[gtk+/gestures: 67/92] gesture: group continue conditions together
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gestures: 67/92] gesture: group continue conditions together
- Date: Tue, 8 Apr 2014 19:46:02 +0000 (UTC)
commit 5f2c8b0d4d675860af313826f9412160e770f671
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue Apr 8 20:44:38 2014 +0200
gesture: group continue conditions together
gtk/gtkgesture.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkgesture.c b/gtk/gtkgesture.c
index 1b5d95e..ae84081 100644
--- a/gtk/gtkgesture.c
+++ b/gtk/gtkgesture.c
@@ -134,9 +134,8 @@ _gtk_gesture_effective_n_points (GtkGesture *gesture)
while (g_hash_table_iter_next (&iter, NULL, (gpointer *) &data))
{
- if (data->state == GTK_EVENT_SEQUENCE_DENIED)
- continue;
- if (data->event->type == GDK_TOUCH_END ||
+ if (data->state == GTK_EVENT_SEQUENCE_DENIED ||
+ data->event->type == GDK_TOUCH_END ||
data->event->type == GDK_BUTTON_RELEASE)
continue;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]