[gtk+/refactor: 91/96] gtk/gtkbox.c: use accessor functions to access GtkWidget
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/refactor: 91/96] gtk/gtkbox.c: use accessor functions to access GtkWidget
- Date: Thu, 12 Aug 2010 02:23:33 +0000 (UTC)
commit b773b2eee08f85cc2478d210585550fa988218d4
Author: Javier Jardón <jjardon gnome org>
Date: Wed Aug 11 23:17:44 2010 +0200
gtk/gtkbox.c: use accessor functions to access GtkWidget
gtk/gtkbox.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkbox.c b/gtk/gtkbox.c
index cdc5f1d..fffd462 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]