[gtk+/wip/garnacho/touchpad-gestures: 52/60] gtkwidget: Ensure touchpad events trigger the bubbling phase
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/garnacho/touchpad-gestures: 52/60] gtkwidget: Ensure touchpad events trigger the bubbling phase
- Date: Wed, 15 Jul 2015 17:53:46 +0000 (UTC)
commit 1d73d1ed810bf2d2d8d00737a0f854e14bc21e09
Author: Carlos Garnacho <carlosg gnome org>
Date: Thu Jul 9 18:48:41 2015 +0200
gtkwidget: Ensure touchpad events trigger the bubbling phase
For all other events, we run the bubble phase deep in the specific
::motion/button-press/release/touch handlers.
For touchpad events, it doesn't make sense to use GtkWidgetClass
slots if the intended way to deal with these are gestures, so we
run the bubble phase directly from gtk_widget_event_internal().
gtk/gtkwidget.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 92e0dc5..de951d6 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -7716,6 +7716,16 @@ gtk_widget_event_internal (GtkWidget *widget,
switch (event->type)
{
+ case GDK_TOUCHPAD_SWIPE_BEGIN:
+ case GDK_TOUCHPAD_SWIPE_UPDATE:
+ case GDK_TOUCHPAD_SWIPE_END:
+ case GDK_TOUCHPAD_SWIPE_CANCEL:
+ case GDK_TOUCHPAD_PINCH_BEGIN:
+ case GDK_TOUCHPAD_PINCH_UPDATE:
+ case GDK_TOUCHPAD_PINCH_END:
+ case GDK_TOUCHPAD_PINCH_CANCEL:
+ return_val |= _gtk_widget_run_controllers (widget, event, GTK_PHASE_BUBBLE);
+ /* Fall through */
case GDK_EXPOSE:
case GDK_NOTHING:
signal_num = -1;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]