]> Pileus Git - ~andy/gtk/commit
Bug 553765 – Add orientation API to GtkRange
authorMichael Natterer <mitch@imendio.com>
Tue, 11 Nov 2008 18:07:25 +0000 (18:07 +0000)
committerMichael Natterer <mitch@src.gnome.org>
Tue, 11 Nov 2008 18:07:25 +0000 (18:07 +0000)
commit8121c60d3d25bd1f43a4e044f14033fd118184c7
tree4019482ff95fdaac56dd5a08d183a82b6824d99c
parent0498dca831099c1fac3c0d0a38b0bb08c4bd96de
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=21780
gtk/gtk.symbols