[gtk+/smooth-scrolling-for-3.4: 12/16] iconview: set GDK_SMOOTH_SCROLL_MASK
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/smooth-scrolling-for-3.4: 12/16] iconview: set GDK_SMOOTH_SCROLL_MASK
- Date: Thu, 23 Feb 2012 12:45:08 +0000 (UTC)
commit 3a02b37866a018bd44a2216a08c6dc7d4452f993
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue Jan 24 12:16:08 2012 +0100
iconview: set GDK_SMOOTH_SCROLL_MASK
This is so smooth scroll events are send/handled by the
parent GtkScrolledWindow if any.
gtk/gtkiconview.c | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/gtk/gtkiconview.c b/gtk/gtkiconview.c
index 101403a..59590ab 100644
--- a/gtk/gtkiconview.c
+++ b/gtk/gtkiconview.c
@@ -1285,12 +1285,13 @@ gtk_icon_view_realize (GtkWidget *widget)
attributes.width = MAX (icon_view->priv->width, allocation.width);
attributes.height = MAX (icon_view->priv->height, allocation.height);
attributes.event_mask = (GDK_EXPOSURE_MASK |
- GDK_SCROLL_MASK |
- GDK_POINTER_MOTION_MASK |
- GDK_BUTTON_PRESS_MASK |
- GDK_BUTTON_RELEASE_MASK |
- GDK_KEY_PRESS_MASK |
- GDK_KEY_RELEASE_MASK) |
+ GDK_SCROLL_MASK |
+ GDK_SMOOTH_SCROLL_MASK |
+ GDK_POINTER_MOTION_MASK |
+ GDK_BUTTON_PRESS_MASK |
+ GDK_BUTTON_RELEASE_MASK |
+ GDK_KEY_PRESS_MASK |
+ GDK_KEY_RELEASE_MASK) |
gtk_widget_get_events (widget);
icon_view->priv->bin_window = gdk_window_new (window,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]