layout: set GDK_SMOOTH_SCROLL_MASK

This is so smooth scroll events are send/handled by the
parent GtkScrolledWindow if any.
This commit is contained in:
Carlos Garnacho 2012-01-24 12:17:42 +01:00 committed by Matthias Clasen
parent 7381a2788b
commit 76462df59f

View File

@ -893,6 +893,7 @@ gtk_layout_realize (GtkWidget *widget)
attributes.width = MAX (priv->width, allocation.width);
attributes.height = MAX (priv->height, allocation.height);
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,