diff options
author | Michael Natterer <mitch@lanedo.com> | 2012-01-24 12:12:34 +0100 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2012-03-01 16:28:58 -0500 |
commit | 2a72e7b7b86d1bdb3a6a818b94cb21bc8f611127 (patch) | |
tree | 660f9692e56372b55d36c12cf282df8bf765de9a /gtk/gtkrange.h | |
parent | 147cdd846502d261e2efa02a96ef39d238f8ec4f (diff) | |
download | gtk+-2a72e7b7b86d1bdb3a6a818b94cb21bc8f611127.tar.gz |
gtk: Implement smooth scrolling in scrolledwindow/range
If delta_x/y information is provided in scroll events, use it
to modify the underlying adjustment in steps proportional to
the deltas provided.
If the child widget of a scrolledwindow doesn't set
GDK_SMOOTH_SCROLL_MASK, regular scroll events will be dispatched,
and still handled by these 2 widgets.
Diffstat (limited to 'gtk/gtkrange.h')
-rw-r--r-- | gtk/gtkrange.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkrange.h b/gtk/gtkrange.h index 0f525541db..c4d9e9eb0c 100644 --- a/gtk/gtkrange.h +++ b/gtk/gtkrange.h @@ -146,8 +146,8 @@ void gtk_range_set_round_digits (GtkRange *range gint gtk_range_get_round_digits (GtkRange *range); /* internal API */ -gdouble _gtk_range_get_wheel_delta (GtkRange *range, - GdkScrollDirection direction); +gdouble _gtk_range_get_wheel_delta (GtkRange *range, + GdkEventScroll *event); void _gtk_range_set_has_origin (GtkRange *range, gboolean has_origin); gboolean _gtk_range_get_has_origin (GtkRange *range); |