[gtk+] gdk: Add GDK_SMOOTH_SCROLL_MASK
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gdk: Add GDK_SMOOTH_SCROLL_MASK
- Date: Thu, 1 Mar 2012 21:33:11 +0000 (UTC)
commit 4b1e16cac6a7ad746764f9ba3fb5da78638735be
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue Jan 24 00:05:39 2012 +0100
gdk: Add GDK_SMOOTH_SCROLL_MASK
By setting this event, a GdkWindow will receive scroll events
that provide delta values.
gdk/gdktypes.h | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gdk/gdktypes.h b/gdk/gdktypes.h
index 116fec9..cc4a76e 100644
--- a/gdk/gdktypes.h
+++ b/gdk/gdktypes.h
@@ -349,6 +349,7 @@ typedef enum
* child windows
* @GDK_SCROLL_MASK: receive scroll events
* @GDK_TOUCH_MASK: receive touch events
+ * @GDK_SMOOTH_SCROLL_MASK: receive smooth scrolling events
* @GDK_ALL_EVENTS_MASK: the combination of all the above event masks.
*
* A set of bit-flags to indicate which events a window is to receive.
@@ -396,7 +397,8 @@ typedef enum
GDK_SUBSTRUCTURE_MASK = 1 << 20,
GDK_SCROLL_MASK = 1 << 21,
GDK_TOUCH_MASK = 1 << 22,
- GDK_ALL_EVENTS_MASK = 0x7FFFFE
+ GDK_SMOOTH_SCROLL_MASK = 1 << 23,
+ GDK_ALL_EVENTS_MASK = 0xFFFFFE
} GdkEventMask;
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]