[gtk+] layout: set GDK_SMOOTH_SCROLL_MASK



commit 76462df59fb63923664359da62247a6e9ad0e474
Author: Carlos Garnacho <carlosg gnome org>
Date:   Tue Jan 24 12:17:42 2012 +0100

    layout: set GDK_SMOOTH_SCROLL_MASK
    
    This is so smooth scroll events are send/handled by the
    parent GtkScrolledWindow if any.

 gtk/gtklayout.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtklayout.c b/gtk/gtklayout.c
index 8e1794c..da3dc9a 100644
--- a/gtk/gtklayout.c
+++ b/gtk/gtklayout.c
@@ -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,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]