[gtk+/gestures: 29/202] gesture: Require BUTTON_PRESS/TOUCH_BEGIN for sequences to be initiated.
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gestures: 29/202] gesture: Require BUTTON_PRESS/TOUCH_BEGIN for sequences to be initiated.
- Date: Fri, 23 May 2014 17:58:48 +0000 (UTC)
commit 2285157c7db9a972ca8e1dcbb3363d79b0df6289
Author: Carlos Garnacho <carlosg gnome org>
Date: Fri Mar 21 17:47:06 2014 +0100
gesture: Require BUTTON_PRESS/TOUCH_BEGIN for sequences to be initiated.
Gestures should always receive one of such events in order to be activated,
and the propagation mechanism will ensure they do so if the original event
was caught up the widget hierarchy by another gesture that is now declining
the sequence.
gtk/gtkgesture.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkgesture.c b/gtk/gtkgesture.c
index d7118f1..e1ba100 100644
--- a/gtk/gtkgesture.c
+++ b/gtk/gtkgesture.c
@@ -402,7 +402,7 @@ gtk_gesture_handle_event (GtkEventController *controller,
/* Fall through */
case GDK_TOUCH_UPDATE:
- if (_gtk_gesture_update_point (gesture, event, TRUE) &&
+ if (_gtk_gesture_update_point (gesture, event, FALSE) &&
_gtk_gesture_check_recognized (gesture, sequence))
g_signal_emit (gesture, signals[UPDATE], 0, sequence);
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]