From 2f6285597f8b5859a3f565f63a24bad59d261a55 Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Tue, 30 Sep 2008 14:20:30 +0000 Subject: =?UTF-8?q?Bug=20553582=20=E2=80=93=20Add=20orientation=20API=20to?= =?UTF-8?q?=20GtkSeparator?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2008-09-30 Michael Natterer Bug 553582 – Add orientation API to GtkSeparator * gtk/gtkseparator.[ch]: implement the GtkOrientable interface and swallow all code from GtkHSeparator and GtkVSeparator. Add gtk_separator_new() which takes a GtkOrientation argument. * gtk/gtkhseparator.c * gtk/gtkvseparator.c: remove all code except the constructor and call gtk_orientable_set_orientation() in init(). * gtk/gtk.symbols: add gtk_separator_new(). svn path=/trunk/; revision=21553 --- gtk/gtkseparator.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'gtk/gtkseparator.h') diff --git a/gtk/gtkseparator.h b/gtk/gtkseparator.h index b6400f9a40..ac0f9d894e 100644 --- a/gtk/gtkseparator.h +++ b/gtk/gtkseparator.h @@ -46,7 +46,6 @@ G_BEGIN_DECLS #define GTK_SEPARATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_SEPARATOR, GtkSeparatorClass)) - typedef struct _GtkSeparator GtkSeparator; typedef struct _GtkSeparatorClass GtkSeparatorClass; @@ -61,8 +60,8 @@ struct _GtkSeparatorClass }; -GType gtk_separator_get_type (void) G_GNUC_CONST; - +GType gtk_separator_get_type (void) G_GNUC_CONST; +GtkWidget * gtk_separator_new (GtkOrientation orientation); G_END_DECLS -- cgit v1.2.1