summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2010-08-11 23:17:44 +0200
committerJavier Jardón <jjardon@gnome.org>2010-08-22 22:56:16 +0200
commitd9b459dd64b33eef7dade3d52ff1114ef3b3f467 (patch)
tree2d4a4561ec27a63f1004d7e7d0cf6a5791bb3401
parent6cad69e32abf12fd3fd4ee4ee80e28e7aa391f83 (diff)
downloadgtk+-d9b459dd64b33eef7dade3d52ff1114ef3b3f467.tar.gz
gtk/gtkbox.c: use accessor functions to access GtkWidget
-rw-r--r--gtk/gtkbox.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkbox.c b/gtk/gtkbox.c
index 1f9b63708d..3abf717690 100644
--- a/gtk/gtkbox.c
+++ b/gtk/gtkbox.c
@@ -421,7 +421,7 @@ gtk_box_size_allocate (GtkWidget *widget,
gint child_size;
- widget->allocation = *allocation;
+ gtk_widget_set_allocation (widget, allocation);
count_expand_children (box, &nvis_children, &nexpand_children);
@@ -779,7 +779,7 @@ gtk_box_pack (GtkBox *box,
g_return_if_fail (GTK_IS_BOX (box));
g_return_if_fail (GTK_IS_WIDGET (child));
- g_return_if_fail (child->parent == NULL);
+ g_return_if_fail (gtk_widget_get_parent (child) == NULL);
child_info = g_new (GtkBoxChild, 1);
child_info->widget = child;