iconview: 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:16:08 +01:00 committed by Matthias Clasen
parent 2a72e7b7b8
commit 7381a2788b

View File

@ -1283,12 +1283,13 @@ gtk_icon_view_realize (GtkWidget *widget)
attributes.width = MAX (icon_view->priv->width, allocation.width); attributes.width = MAX (icon_view->priv->width, allocation.width);
attributes.height = MAX (icon_view->priv->height, allocation.height); attributes.height = MAX (icon_view->priv->height, allocation.height);
attributes.event_mask = (GDK_EXPOSURE_MASK | attributes.event_mask = (GDK_EXPOSURE_MASK |
GDK_SCROLL_MASK | GDK_SCROLL_MASK |
GDK_POINTER_MOTION_MASK | GDK_SMOOTH_SCROLL_MASK |
GDK_BUTTON_PRESS_MASK | GDK_POINTER_MOTION_MASK |
GDK_BUTTON_RELEASE_MASK | GDK_BUTTON_PRESS_MASK |
GDK_KEY_PRESS_MASK | GDK_BUTTON_RELEASE_MASK |
GDK_KEY_RELEASE_MASK) | GDK_KEY_PRESS_MASK |
GDK_KEY_RELEASE_MASK) |
gtk_widget_get_events (widget); gtk_widget_get_events (widget);
icon_view->priv->bin_window = gdk_window_new (window, icon_view->priv->bin_window = gdk_window_new (window,