From 6852137e13545d10df1c9e512ba717668f82e583 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Jard=C3=B3n?= Date: Thu, 15 Jul 2010 00:54:41 +0200 Subject: Move GtkBoxChild from the public .h to gtkbox.c https://bugzilla.gnome.org/show_bug.cgi?id=624397 --- gtk/gtkbox.c | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'gtk/gtkbox.c') diff --git a/gtk/gtkbox.c b/gtk/gtkbox.c index f481607b67..c372a1d149 100644 --- a/gtk/gtkbox.c +++ b/gtk/gtkbox.c @@ -115,6 +115,32 @@ struct _GtkBoxPriv typedef struct _GtkBoxDesiredSizes GtkBoxDesiredSizes; typedef struct _GtkBoxSpreading GtkBoxSpreading; +typedef struct _GtkBoxChild GtkBoxChild; + +/* + * GtkBoxChild: + * @widget: the child widget, packed into the GtkBox. + * @padding: the number of extra pixels to put between this child and its + * neighbors, set when packed, zero by default. + * @expand: flag indicates whether extra space should be given to this child. + * Any extra space given to the parent GtkBox is divided up among all children + * with this attribute set to %TRUE; set when packed, %TRUE by default. + * @fill: flag indicates whether any extra space given to this child due to its + * @expand attribute being set is actually allocated to the child, rather than + * being used as padding around the widget; set when packed, %TRUE by default. + * @pack: one of #GtkPackType indicating whether the child is packed with + * reference to the start (top/left) or end (bottom/right) of the GtkBox. + */ +struct _GtkBoxChild +{ + GtkWidget *widget; + + guint16 padding; + + guint expand : 1; + guint fill : 1; + guint pack : 1; +}; struct _GtkBoxDesiredSizes { -- cgit v1.2.1