[gtk+/gestures: 67/173] gesture: emit the current state on ::sequence-state-changed
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gestures: 67/173] gesture: emit the current state on ::sequence-state-changed
- Date: Fri, 16 May 2014 17:06:01 +0000 (UTC)
commit a7ca14993664f842707798b27ed5214766e70d9f
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue Apr 8 20:45:18 2014 +0200
gesture: emit the current state on ::sequence-state-changed
gtk/gtkgesture.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkgesture.c b/gtk/gtkgesture.c
index ae84081..a07ac36 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]