[gtk+/smooth-scrolling-for-3.4: 13/20] layout: set GDK_SMOOTH_SCROLL_MASK



commit 2dd58d948275c4e50228f4c23d35f6819eb1b882
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 0f9cfed..d81ae04 100644
--- a/gtk/gtklayout.c
+++ b/gtk/gtklayout.c
@@ -894,7 +894,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]