[gtk+] viewport: select for touch events
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] viewport: select for touch events
- Date: Thu, 1 Mar 2012 21:30:23 +0000 (UTC)
commit 42c75d28b827ecc403af09127ea3aca285a5a657
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 95ad988..e20ccf7 100644
--- a/gtk/gtkviewport.c
+++ b/gtk/gtkviewport.c
@@ -682,7 +682,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]