Commit 8ebcca2e authored by Carlos Garnacho's avatar Carlos Garnacho

gesture: return TRUE if the sequence state was already set

parent f3257e1a
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment