]> Pileus Git - ~andy/gtk/commitdiff
layout: set GDK_SMOOTH_SCROLL_MASK
authorCarlos Garnacho <carlosg@gnome.org>
Tue, 24 Jan 2012 11:17:42 +0000 (12:17 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 1 Mar 2012 21:28:59 +0000 (16:28 -0500)
This is so smooth scroll events are send/handled by the
parent GtkScrolledWindow if any.

gtk/gtklayout.c

index 8e1794c3445ee71c0e021c01acce9c55a046c91a..da3dc9a9c9f622bc3c0492b4b23e197444b61b73 100644 (file)
@@ -892,7 +892,8 @@ gtk_layout_realize (GtkWidget *widget)
   attributes.y = - gtk_adjustment_get_value (priv->vadjustment);
   attributes.width = MAX (priv->width, allocation.width);
   attributes.height = MAX (priv->height, allocation.height);
-  attributes.event_mask = GDK_EXPOSURE_MASK | GDK_SCROLL_MASK | 
+  attributes.event_mask = GDK_EXPOSURE_MASK | GDK_SCROLL_MASK |
+                          GDK_SMOOTH_SCROLL_MASK | 
                           gtk_widget_get_events (widget);
 
   priv->bin_window = gdk_window_new (window,