summaryrefslogtreecommitdiff
path: root/gtk/gtkrange.h
diff options
context:
space:
mode:
authorMichael Natterer <mitch@imendio.com>2008-11-11 17:47:13 +0000
committerMichael Natterer <mitch@src.gnome.org>2008-11-11 17:47:13 +0000
commit0498dca831099c1fac3c0d0a38b0bb08c4bd96de (patch)
tree684058a5c5624ce509bff9b297d9bd1e6f17206b /gtk/gtkrange.h
parent4d8f9d2ef380f9158e0611df6f791042d0ebae76 (diff)
downloadgtk+-0498dca831099c1fac3c0d0a38b0bb08c4bd96de.tar.gz
Bug 553765 – Add orientation API to GtkRange
2008-11-11 Michael Natterer <mitch@imendio.com> Bug 553765 – Add orientation API to GtkRange * gtk/gtkrange.[ch]: implement the GtkOrientable interface. Add evil code that makes sure that the stepper_detail and slider_detail set in GtkRangeClass continue to work with the hacked subclasses below. * gtk/gtkscale.[ch]: swallow all code from GtkHScale and GtkVScale and add gtk_scale_new() and gtk_scale_new_with_range() which take a GtkOrientation argument. Set slider_detail to "Xscale" so above evil code works. * gtk/gtkscrollbar.[ch]: add gtk_scrollbar_new() which takes a GtkOrientation argument. Set stepper_detail to "Xscrollbar" so above evil code works. * gtk/gtkhscale.c * gtk/gtkvscale.c * gtk/gtkhscrollbar.c * gtk/gtkvscrollbar.c: remove all code except the constructor and call gtk_orientable_set_orientation() in init(). * gtk/gtk.symbols: changed accordingly. svn path=/trunk/; revision=21779
Diffstat (limited to 'gtk/gtkrange.h')
-rw-r--r--gtk/gtkrange.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/gtkrange.h b/gtk/gtkrange.h
index 7c6b46d011..08860f8121 100644
--- a/gtk/gtkrange.h
+++ b/gtk/gtkrange.h
@@ -174,6 +174,7 @@ void gtk_range_set_fill_level (GtkRange *range
gdouble fill_level);
gdouble gtk_range_get_fill_level (GtkRange *range);
+/* internal API */
gdouble _gtk_range_get_wheel_delta (GtkRange *range,
GdkScrollDirection direction);