[gtk+/gesture-fixes] window: Avoid double event processing in the multipress event controller
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gesture-fixes] window: Avoid double event processing in the multipress event controller
- Date: Tue, 27 May 2014 10:42:30 +0000 (UTC)
commit 3a8621898302f7742c22a1162c1fb8f9663b6fa8
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue May 27 12:14:17 2014 +0200
window: Avoid double event processing in the multipress event controller
The events to those are fed outside the regular event propagation scheme,
through _gtk_window_check_handle_wm_event(), so set the controller to
GTK_PHASE_NONE so events aren't processed first manually, and then
automatically.
gtk/gtkwindow.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index cdd67bc..d009ec4 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -1595,8 +1595,6 @@ gtk_window_constructor (GType type,
G_CALLBACK (multipress_gesture_pressed_cb), object);
g_signal_connect (priv->multipress_gesture, "stopped",
G_CALLBACK (multipress_gesture_stopped_cb), object);
- gtk_event_controller_set_propagation_phase (GTK_EVENT_CONTROLLER (priv->multipress_gesture),
- GTK_PHASE_CAPTURE);
}
return object;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]