[gtk+/smooth-scrolling-for-3.4: 18/20] calendar: Set GDK_SCROLL_MASK explicitly
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/smooth-scrolling-for-3.4: 18/20] calendar: Set GDK_SCROLL_MASK explicitly
- Date: Thu, 23 Feb 2012 13:50:42 +0000 (UTC)
commit 1f6871e52a1edb34961f7cd7c77570d69f1313da
Author: Carlos Garnacho <carlosg gnome org>
Date: Thu Feb 23 14:45:18 2012 +0100
calendar: Set GDK_SCROLL_MASK explicitly
selecting for button press/release doesn't suffice anymore to
get scroll events.
gtk/gtkcalendar.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkcalendar.c b/gtk/gtkcalendar.c
index 985bf53..e23b2af 100644
--- a/gtk/gtkcalendar.c
+++ b/gtk/gtkcalendar.c
@@ -1682,6 +1682,7 @@ gtk_calendar_realize (GtkWidget *widget)
attributes.wclass = GDK_INPUT_ONLY;
attributes.window_type = GDK_WINDOW_CHILD;
attributes.event_mask = (gtk_widget_get_events (widget) | GDK_EXPOSURE_MASK
+ | GDK_SCROLL_MASK
| GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
| GDK_POINTER_MOTION_MASK | GDK_LEAVE_NOTIFY_MASK);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]