summaryrefslogtreecommitdiff
path: root/gtk/gtkbbox.c
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2010-05-25 01:57:10 +0200
committerJavier Jardón <jjardon@gnome.org>2010-07-13 19:40:45 +0200
commita46c1eba6413b676c15103b38a85ba686c230161 (patch)
treeebef733f9f39ed35bf120cbcb899427544a23f62 /gtk/gtkbbox.c
parentabe267641a1ba63903d3191b0c6d7044fe260112 (diff)
downloadgtk+-a46c1eba6413b676c15103b38a85ba686c230161.tar.gz
Use accessor functions to access GtkBox
Diffstat (limited to 'gtk/gtkbbox.c')
-rw-r--r--gtk/gtkbbox.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gtk/gtkbbox.c b/gtk/gtkbbox.c
index 4f68309a07..826e310cf5 100644
--- a/gtk/gtkbbox.c
+++ b/gtk/gtkbbox.c
@@ -348,7 +348,7 @@ gtk_button_box_get_child_secondary (GtkButtonBox *widget,
g_return_val_if_fail (GTK_IS_WIDGET (child), FALSE);
child_info = NULL;
- list = GTK_BOX (widget)->children;
+ list = gtk_container_get_children (GTK_CONTAINER (widget));
while (list)
{
child_info = list->data;
@@ -394,7 +394,7 @@ gtk_button_box_set_child_secondary (GtkButtonBox *widget,
g_return_if_fail (GTK_IS_WIDGET (child));
g_return_if_fail (child->parent == GTK_WIDGET (widget));
- list = GTK_BOX (widget)->children;
+ list = gtk_container_get_children (GTK_CONTAINER (widget));
while (list)
{
GtkBoxChild *child_info = list->data;
@@ -468,7 +468,7 @@ _gtk_button_box_child_requisition (GtkWidget *widget,
nchildren = 0;
nsecondaries = 0;
- children = GTK_BOX(bbox)->children;
+ children = gtk_container_get_children (GTK_CONTAINER (bbox));
needed_width = child_min_width;
needed_height = child_min_height;
ipad_w = ipad_x * 2;
@@ -539,7 +539,7 @@ gtk_button_box_size_request (GtkWidget *widget,
priv = bbox->priv;
orientation = gtk_orientable_get_orientation (GTK_ORIENTABLE (widget));
- spacing = box->spacing;
+ spacing = gtk_box_get_spacing (box);
layout = priv->layout_style != GTK_BUTTONBOX_DEFAULT_STYLE
? priv->layout_style : gtk_button_box_kludge_get_layout_default (GTK_BUTTON_BOX (widget));
@@ -625,7 +625,7 @@ gtk_button_box_size_allocate (GtkWidget *widget,
priv = box->priv;
orientation = gtk_orientable_get_orientation (GTK_ORIENTABLE (widget));
- spacing = base_box->spacing;
+ spacing = gtk_box_get_spacing (base_box);
layout = priv->layout_style != GTK_BUTTONBOX_DEFAULT_STYLE
? priv->layout_style : gtk_button_box_kludge_get_layout_default (GTK_BUTTON_BOX (widget));
_gtk_button_box_child_requisition (widget,
@@ -793,7 +793,7 @@ gtk_button_box_size_allocate (GtkWidget *widget,
childspace = child_height + childspacing;
}
- children = GTK_BOX (box)->children;
+ children = gtk_container_get_children (GTK_CONTAINER (box));
while (children)
{