From 76462df59fb63923664359da62247a6e9ad0e474 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Tue, 24 Jan 2012 12:17:42 +0100 Subject: [PATCH] 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 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gtk/gtklayout.c b/gtk/gtklayout.c index 8e1794c344..da3dc9a9c9 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,