[gtk+/smooth-scrolling-for-3.4: 13/16] layout: 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: 13/16] layout: set GDK_SMOOTH_SCROLL_MASK
- Date: Thu, 23 Feb 2012 12:45:13 +0000 (UTC)
commit bcbd3c543de2c65c1c3b9d7e805296275c5d9007
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue Jan 24 12:17:42 2012 +0100
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 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtklayout.c b/gtk/gtklayout.c
index 0f9cfed..d81ae04 100644
--- a/gtk/gtklayout.c
+++ b/gtk/gtklayout.c
@@ -894,7 +894,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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]