widget: Make invisible widgets not propagate resizes

Do not queue a resize on the parent if the widget is not visible.
Invisible widgets do not influence the parents size.
This commit is contained in:
Benjamin Otte 2015-10-01 22:38:31 +02:00
parent bef44ab294
commit e07ff714b9

View File

@ -5635,7 +5635,7 @@ G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
gtk_container_queue_resize_handler (GTK_CONTAINER (widget));
G_GNUC_END_IGNORE_DEPRECATIONS;
}
else
else if (_gtk_widget_get_visible (widget))
{
GtkWidget *parent = _gtk_widget_get_parent (widget);
if (parent)