forked from AuroraMiddleware/gtk
gesture: return TRUE if the sequence state was already set
This commit is contained in:
parent
f3257e1a54
commit
8ebcca2ef6
@ -649,9 +649,12 @@ gtk_gesture_set_sequence_state (GtkGesture *gesture,
|
|||||||
priv = gtk_gesture_get_instance_private (gesture);
|
priv = gtk_gesture_get_instance_private (gesture);
|
||||||
data = g_hash_table_lookup (priv->points, sequence);
|
data = g_hash_table_lookup (priv->points, sequence);
|
||||||
|
|
||||||
if (!data || data->state == state)
|
if (!data)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
if (data->state == state)
|
||||||
|
return TRUE;
|
||||||
|
|
||||||
/* denied sequences remain denied */
|
/* denied sequences remain denied */
|
||||||
if (data->state == GTK_EVENT_SEQUENCE_DENIED)
|
if (data->state == GTK_EVENT_SEQUENCE_DENIED)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
Loading…
Reference in New Issue
Block a user