[gtk+/smooth-scrolling-for-3.4: 1/20] gdk: Add GDK_SCROLL_SMOOTH to GdkScrollDirection



commit ac7985cd64a5f83082281eb0677b51bfd8f9aaa0
Author: Carlos Garnacho <carlosg gnome org>
Date:   Mon Jan 23 23:45:26 2012 +0100

    gdk: Add GDK_SCROLL_SMOOTH to GdkScrollDirection
    
    This value will be used for smooth scroll events, as they'll
    express the scrolling direction in terms of dx/dy.

 gdk/gdkevents.h |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gdk/gdkevents.h b/gdk/gdkevents.h
index a69f669..509c2c4 100644
--- a/gdk/gdkevents.h
+++ b/gdk/gdkevents.h
@@ -343,6 +343,8 @@ typedef enum
  * @GDK_SCROLL_DOWN: the window is scrolled down.
  * @GDK_SCROLL_LEFT: the window is scrolled to the left.
  * @GDK_SCROLL_RIGHT: the window is scrolled to the right.
+ * @GDK_SCROLL_SMOOTH: the scrolling is determined by the delta values
+ *   in #GdkEventScroll. See gdk_event_get_scroll_deltas().
  *
  * Specifies the direction for #GdkEventScroll.
  */
@@ -351,7 +353,8 @@ typedef enum
   GDK_SCROLL_UP,
   GDK_SCROLL_DOWN,
   GDK_SCROLL_LEFT,
-  GDK_SCROLL_RIGHT
+  GDK_SCROLL_RIGHT,
+  GDK_SCROLL_SMOOTH
 } GdkScrollDirection;
 
 /**



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]