summaryrefslogtreecommitdiff
path: root/gtk/gtkcontainer.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/gtkcontainer.c')
-rw-r--r--gtk/gtkcontainer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkcontainer.c b/gtk/gtkcontainer.c
index af6f96cac3..5cf5238e2b 100644
--- a/gtk/gtkcontainer.c
+++ b/gtk/gtkcontainer.c
@@ -299,8 +299,8 @@ gtk_container_border_width (GtkContainer *container,
{
container->border_width = border_width;
- if (container->widget.parent && GTK_WIDGET_VISIBLE (container))
- gtk_container_need_resize (GTK_CONTAINER (container->widget.parent));
+ if (GTK_WIDGET_REALIZED (container))
+ gtk_widget_queue_resize (GTK_WIDGET (container));
}
}