diff options
author | Matthias Clasen <mclasen@redhat.com> | 2012-02-29 20:08:03 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2012-02-29 20:08:03 -0500 |
commit | 2a9ef1566d1d8121867acc1284aa292632420b2f (patch) | |
tree | 139b0ddf720169a209d3ee554f7bffeefd4522ee | |
parent | d22e419749cea8ccfc5954f2b246b409f8058e0d (diff) | |
download | gtk+-touch-for-3.4.tar.gz |
viewport: select for touch eventstouch-for-3.4
This makes kinetic scrolling work with viewports where the
content does not otherwise select for button or touch events,
such as testscrolledwindow's label.
-rw-r--r-- | gtk/gtkviewport.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkviewport.c b/gtk/gtkviewport.c index 2b0e2851af..f4b9fbd859 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; |