[gtk+/touch-for-3.4] viewport: select for touch events
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/touch-for-3.4] viewport: select for touch events
- Date: Thu, 1 Mar 2012 01:08:40 +0000 (UTC)
commit 2a9ef1566d1d8121867acc1284aa292632420b2f
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Feb 29 20:08:03 2012 -0500
viewport: select for touch events
This makes kinetic scrolling work with viewports where the
content does not otherwise select for button or touch events,
such as testscrolledwindow's label.
gtk/gtkviewport.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkviewport.c b/gtk/gtkviewport.c
index 2b0e285..f4b9fbd 100644
--- a/gtk/gtkviewport.c
+++ b/gtk/gtkviewport.c
@@ -684,7 +684,7 @@ gtk_viewport_realize (GtkWidget *widget)
event_mask = gtk_widget_get_events (widget) | GDK_EXPOSURE_MASK;
/* We select on button_press_mask so that button 4-5 scrolls are trapped.
*/
- attributes.event_mask = event_mask | GDK_BUTTON_PRESS_MASK;
+ attributes.event_mask = event_mask | GDK_BUTTON_PRESS_MASK | GDK_TOUCH_MASK;
attributes_mask = GDK_WA_X | GDK_WA_Y | GDK_WA_VISUAL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]