From e731caf8d02df13479be9ea87bb28600cdb3f965 Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Fri, 1 Jul 2011 11:47:41 -0400 Subject: [PATCH] Revert "gtkbox: Invalidate order on changes, even if the child is not visible" This reverts commit 8cb0cc58e321641ebda699b9cbdc0067aeb56d3f. --- gtk/gtkbox.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/gtk/gtkbox.c b/gtk/gtkbox.c index b711a52aa5..f97a80d583 100644 --- a/gtk/gtkbox.c +++ b/gtk/gtkbox.c @@ -1612,12 +1612,10 @@ gtk_box_reorder_child (GtkBox *box, priv->children = g_list_insert_before (priv->children, new_link, child_info); gtk_widget_child_notify (child, "position"); - - gtk_box_invalidate_order (box); - if (gtk_widget_get_visible (child) && gtk_widget_get_visible (GTK_WIDGET (box))) { + gtk_box_invalidate_order (box); gtk_widget_queue_resize (child); } } @@ -1801,13 +1799,12 @@ gtk_box_remove (GtkContainer *container, g_list_free (children); g_free (child); - gtk_box_invalidate_order (box); - /* queue resize regardless of gtk_widget_get_visible (container), * since that's what is needed by toplevels. */ if (was_visible) { + gtk_box_invalidate_order (box); gtk_widget_queue_resize (GTK_WIDGET (container)); }