diff options
author | Michael Natterer <mitch@imendio.com> | 2008-10-07 07:44:06 +0000 |
---|---|---|
committer | Michael Natterer <mitch@src.gnome.org> | 2008-10-07 07:44:06 +0000 |
commit | 97a9867c9f3f8a20bfef37fc6c9f3af114b4d4c1 (patch) | |
tree | 2922ac39397e82c422c567e405956f3a949ab600 /gtk/gtkvbox.h | |
parent | 8a227df95fd80491e659b5054c4d7faf53d432ac (diff) | |
download | gtk+-97a9867c9f3f8a20bfef37fc6c9f3af114b4d4c1.tar.gz |
Bug 553573 – Add orientation API to GtkBox
2008-10-07 Michael Natterer <mitch@imendio.com>
Bug 553573 – Add orientation API to GtkBox
* gtk/gtkbox.[hh]: implement the GtkOrientable interface and
swallow all code from GtkHBox and GtkVBox. Add gtk_box_new()
which takes a GtkOrientation argument. Also move the newly
added "spacing_set" boolean from struct GtkBox to the new
private struct.
* gtk/gtkhbox.[ch]
* gtk/gtkvbox.[ch]: remove all code except the constructor and
call gtk_orientable_set_orientation() in init().
* gtk/gtk.symbols: add gtk_box_new().
svn path=/trunk/; revision=21596
Diffstat (limited to 'gtk/gtkvbox.h')
-rw-r--r-- | gtk/gtkvbox.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/gtk/gtkvbox.h b/gtk/gtkvbox.h index 68286559d8..a0ca325b3c 100644 --- a/gtk/gtkvbox.h +++ b/gtk/gtkvbox.h @@ -38,7 +38,6 @@ G_BEGIN_DECLS - #define GTK_TYPE_VBOX (gtk_vbox_get_type ()) #define GTK_VBOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_VBOX, GtkVBox)) #define GTK_VBOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_VBOX, GtkVBoxClass)) @@ -61,12 +60,10 @@ struct _GtkVBoxClass }; -GType gtk_vbox_get_type (void) G_GNUC_CONST; -GtkWidget* gtk_vbox_new (gboolean homogeneous, - gint spacing); - +GType gtk_vbox_get_type (void) G_GNUC_CONST; +GtkWidget * gtk_vbox_new (gboolean homogeneous, + gint spacing); G_END_DECLS - #endif /* __GTK_VBOX_H__ */ |