[gtk+/gestures: 66/117] gesture: return TRUE if the sequence state was already set
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gestures: 66/117] gesture: return TRUE if the sequence state was already set
- Date: Thu, 10 Apr 2014 20:30:14 +0000 (UTC)
commit 3bebdaf9b26c12c4ab432913ae14172406c05889
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue Apr 8 20:43:52 2014 +0200
gesture: return TRUE if the sequence state was already set
gtk/gtkgesture.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkgesture.c b/gtk/gtkgesture.c
index 59d09ab..1b5d95e 100644
--- a/gtk/gtkgesture.c
+++ b/gtk/gtkgesture.c
@@ -649,9 +649,12 @@ gtk_gesture_set_sequence_state (GtkGesture *gesture,
priv = gtk_gesture_get_instance_private (gesture);
data = g_hash_table_lookup (priv->points, sequence);
- if (!data || data->state == state)
+ if (!data)
return FALSE;
+ if (data->state == state)
+ return TRUE;
+
/* denied sequences remain denied */
if (data->state == GTK_EVENT_SEQUENCE_DENIED)
return FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]