diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2014-04-08 20:45:18 +0200 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2014-05-23 19:54:25 +0200 |
commit | 72f8c673da64c1f5cc4662e1e9240539e07e7882 (patch) | |
tree | 0cb3dbd89614ade726c111f2bd0ac5785e89e371 /gtk/gtkgesture.c | |
parent | ae241714c43b2e0fd867e147ceba8577a32c6a8f (diff) | |
download | gtk+-72f8c673da64c1f5cc4662e1e9240539e07e7882.tar.gz |
gesture: emit the current state on ::sequence-state-changed
Diffstat (limited to 'gtk/gtkgesture.c')
-rw-r--r-- | gtk/gtkgesture.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gtk/gtkgesture.c b/gtk/gtkgesture.c index ae84081fbf..a07ac361ea 100644 --- a/gtk/gtkgesture.c +++ b/gtk/gtkgesture.c @@ -639,7 +639,6 @@ gtk_gesture_set_sequence_state (GtkGesture *gesture, { GtkGesturePrivate *priv; PointData *data; - guint old_state; g_return_val_if_fail (GTK_IS_GESTURE (gesture), FALSE); g_return_val_if_fail (state >= GTK_EVENT_SEQUENCE_NONE && @@ -663,10 +662,9 @@ gtk_gesture_set_sequence_state (GtkGesture *gesture, data->state != GTK_EVENT_SEQUENCE_NONE) return FALSE; - old_state = data->state; data->state = state; g_signal_emit (gesture, signals[SEQUENCE_STATE_CHANGED], 0, - sequence, old_state); + sequence, state); if (state == GTK_EVENT_SEQUENCE_DENIED) _gtk_gesture_check_recognized (gesture, sequence); |