forked from AuroraMiddleware/gtk
GtkGestureMultiPress: check event state before emiting released signal
Fix bug 771986 "Inconsistent 'row-activated' signal emission before \ drag'n'drop, 'activate-on-single-click'=TRUE, 'reorderable'=TRUE"
This commit is contained in:
parent
fbd79d8fea
commit
f2019e61db
@ -282,7 +282,9 @@ gtk_gesture_multi_press_end (GtkGesture *gesture,
|
||||
current = gtk_gesture_single_get_current_sequence (GTK_GESTURE_SINGLE (gesture));
|
||||
gtk_gesture_get_point (gesture, current, &x, &y);
|
||||
|
||||
g_signal_emit (gesture, signals[RELEASED], 0, priv->n_release, x, y);
|
||||
if (gtk_gesture_get_sequence_state (gesture, current) != GTK_EVENT_SEQUENCE_DENIED)
|
||||
g_signal_emit (gesture, signals[RELEASED], 0, priv->n_release, x, y);
|
||||
|
||||
priv->n_release = 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user