[gtk+/smooth-scrolling: 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: 13/16] layout: set GDK_SMOOTH_SCROLL_MASK
- Date: Tue, 24 Jan 2012 11:27:05 +0000 (UTC)
commit 716b104800f8a230f19b8b230785ea0aad97a789
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]