diff options
author | Javier Jardón <jjardon@gnome.org> | 2010-07-15 00:54:41 +0200 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2010-07-20 02:58:36 +0200 |
commit | 6852137e13545d10df1c9e512ba717668f82e583 (patch) | |
tree | c217341fe2b3532cb376b0e7ccf21f2c7e7e3b58 /gtk/gtkbox.c | |
parent | 82efd2d92f775a60639a4b404b66a4096acbcd12 (diff) | |
download | gtk+-6852137e13545d10df1c9e512ba717668f82e583.tar.gz |
Move GtkBoxChild from the public .h to gtkbox.c
https://bugzilla.gnome.org/show_bug.cgi?id=624397
Diffstat (limited to 'gtk/gtkbox.c')
-rw-r--r-- | gtk/gtkbox.c | 26 |
1 files changed, 26 insertions, 0 deletions
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 { |