gesture: return TRUE if the sequence state was already set

This commit is contained in:
Carlos Garnacho 2014-04-08 20:43:52 +02:00
parent f3257e1a54
commit 8ebcca2ef6

View File

@ -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;