diff options
author | Soeren Sandmann <sandmann@daimi.au.dk> | 2004-02-29 18:21:57 +0000 |
---|---|---|
committer | Søren Sandmann Pedersen <ssp@src.gnome.org> | 2004-02-29 18:21:57 +0000 |
commit | 41dfb5ec46ee3785a2cf1ae3a8919c49b9b5ee70 (patch) | |
tree | 9afe2267e10ee1064511b88db0c14070fe32e3ea /gtk/gtkrange.h | |
parent | fc29c1a2fb70a70ff494e4e3b2bb11be7b5816dc (diff) | |
download | gtk+-41dfb5ec46ee3785a2cf1ae3a8919c49b9b5ee70.tar.gz |
New internal function returning a good step value for the mouse wheel. For
Sun Feb 29 19:04:33 2004 Soeren Sandmann <sandmann@daimi.au.dk>
* gtk/gtkrange.c (_gtk_range_get_wheel_delta): New internal
function returning a good step value for the mouse wheel. For
scrollbars, base the step on page_size^(2/3), for other ranges,
use 2 * step_increment.
* gtk/gtkrange.c (gtk_range_scroll_event): Use it here ...
* gtk/gtkscrolledwindow.c (gtk_scrolled_window_scroll_event):
... and here.
* gtk/gtkmenu.c (gtk_menu_leave_notify): Fix a warning.
Diffstat (limited to 'gtk/gtkrange.h')
-rw-r--r-- | gtk/gtkrange.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkrange.h b/gtk/gtkrange.h index 02ffdad49c..9f3758ea8c 100644 --- a/gtk/gtkrange.h +++ b/gtk/gtkrange.h @@ -149,6 +149,8 @@ void gtk_range_set_value (GtkRange *range, gdouble value); gdouble gtk_range_get_value (GtkRange *range); +gdouble _gtk_range_get_wheel_delta (GtkRange *range, + GdkScrollDirection direction); #ifdef __cplusplus } |