[gtk/wip/carlosg/cancelled-gestures: 2/2] gtkgesture: Do not cancel gesture when setting DENIED state
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/carlosg/cancelled-gestures: 2/2] gtkgesture: Do not cancel gesture when setting DENIED state
- Date: Mon, 15 Nov 2021 23:50:35 +0000 (UTC)
commit f36ee672265a70cd061f84f7d70975f7971775da
Author: Carlos Garnacho <carlosg gnome org>
Date: Mon Nov 15 23:45:47 2021 +0100
gtkgesture: Do not cancel gesture when setting DENIED state
Touchpoint state and tracking are tangential, this is mixing up both.
This change was added in the fixes for
https://gitlab.gnome.org/GNOME/gtk/-/issues/3016 but is now unnecessary.
gtk/gtkgesture.c | 6 ------
1 file changed, 6 deletions(-)
---
diff --git a/gtk/gtkgesture.c b/gtk/gtkgesture.c
index 71a0300ea1..48db916c2f 100644
--- a/gtk/gtkgesture.c
+++ b/gtk/gtkgesture.c
@@ -1020,7 +1020,6 @@ gtk_gesture_set_sequence_state (GtkGesture *gesture,
{
GtkGesturePrivate *priv;
PointData *data;
- GtkEventSequenceState current_state;
g_return_val_if_fail (GTK_IS_GESTURE (gesture), FALSE);
g_return_val_if_fail (state >= GTK_EVENT_SEQUENCE_NONE &&
@@ -1044,13 +1043,8 @@ gtk_gesture_set_sequence_state (GtkGesture *gesture,
data->state != GTK_EVENT_SEQUENCE_NONE)
return FALSE;
- current_state = data->state;
data->state = state;
- if (state == GTK_EVENT_SEQUENCE_DENIED &&
- current_state == GTK_EVENT_SEQUENCE_CLAIMED)
- _gtk_gesture_cancel_sequence (gesture, sequence);
-
gtk_widget_cancel_event_sequence (gtk_event_controller_get_widget (GTK_EVENT_CONTROLLER (gesture)),
gesture, sequence, state);
g_signal_emit (gesture, signals[SEQUENCE_STATE_CHANGED], 0,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]