diff options
author | Matthias Clasen <mclasen@redhat.com> | 2010-05-25 18:55:15 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2010-05-25 18:55:15 -0400 |
commit | b4e2ff3da32ad2b9670ecf33805eb9993824fe0b (patch) | |
tree | dedc3f6b06fe6af1ddc1a92dc4b0956a40d6feec /gtk/gtkbbox.c | |
parent | bd4609b14042a91646cd9057764eecfbc6faf42b (diff) | |
download | gtk+-b4e2ff3da32ad2b9670ecf33805eb9993824fe0b.tar.gz |
Make orientable base classes instantiable
This commit adds constructors for GtkPaned, GtkBox, GtkButtonBox,
GtkRuler, GtkScale, GtkScrollbar and GtkSeparator and makes these
types instantiable.
Diffstat (limited to 'gtk/gtkbbox.c')
-rw-r--r-- | gtk/gtkbbox.c | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/gtk/gtkbbox.c b/gtk/gtkbbox.c index 5417be777b..91822148dd 100644 --- a/gtk/gtkbbox.c +++ b/gtk/gtkbbox.c @@ -99,7 +99,7 @@ static void gtk_button_box_get_child_property (GtkContainer *container, #define DEFAULT_CHILD_IPAD_X 4 #define DEFAULT_CHILD_IPAD_Y 0 -G_DEFINE_ABSTRACT_TYPE (GtkButtonBox, gtk_button_box, GTK_TYPE_BOX) +G_DEFINE_TYPE (GtkButtonBox, gtk_button_box, GTK_TYPE_BOX) static void gtk_button_box_class_init (GtkButtonBoxClass *class) @@ -813,5 +813,23 @@ gtk_button_box_size_allocate (GtkWidget *widget, } } +/** + * gtk_button_box_new: + * @orientation: the box' orientation. + * + * Creates a new #GtkButtonBox. + * + * Return value: a new #GtkButtonBox. + * + * Since: 3.0 + */ +GtkWidget * +gtk_button_box_new (GtkOrientation orientation) +{ + return g_object_new (GTK_TYPE_BUTTON_BOX, + "orientation", orientation, + NULL); +} + #define __GTK_BUTTON_BOX_C__ #include "gtkaliasdef.c" |