forked from AuroraMiddleware/gtk
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:
parent
2a72e7b7b8
commit
7381a2788b
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user