[gtk+/refactor: 92/145] gtk/gtkbbox.c: use accessor functions to access GtkWidget
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/refactor: 92/145] gtk/gtkbbox.c: use accessor functions to access GtkWidget
- Date: Tue, 17 Aug 2010 18:11:11 +0000 (UTC)
commit 6af004dd3ddf017d89cbb87b5f87a26f95bfc686
Author: Javier Jardón <jjardon gnome org>
Date: Wed Aug 11 23:18:18 2010 +0200
gtk/gtkbbox.c: use accessor functions to access GtkWidget
gtk/gtkbbox.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkbbox.c b/gtk/gtkbbox.c
index 3c7c400..ce58947 100644
--- a/gtk/gtkbbox.c
+++ b/gtk/gtkbbox.c
@@ -381,7 +381,7 @@ gtk_button_box_set_child_secondary (GtkButtonBox *widget,
{
g_return_if_fail (GTK_IS_BUTTON_BOX (widget));
g_return_if_fail (GTK_IS_WIDGET (child));
- g_return_if_fail (child->parent == GTK_WIDGET (widget));
+ g_return_if_fail (gtk_widget_get_parent (child) == GTK_WIDGET (widget));
g_object_set_data (G_OBJECT (child),
GTK_BOX_SECONDARY_CHILD,
@@ -593,7 +593,8 @@ gtk_button_box_size_allocate (GtkWidget *widget,
&n_secondaries,
&child_width,
&child_height);
- widget->allocation = *allocation;
+
+ gtk_widget_set_allocation (widget, allocation);
if (orientation == GTK_ORIENTATION_HORIZONTAL)
width = allocation->width - border_width*2;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]