From e07ff714b9eec37f4789e093ab1d199ffea29f46 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Thu, 1 Oct 2015 22:38:31 +0200 Subject: [PATCH] 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. --- gtk/gtkwidget.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index a1d5153cfd..12c15cba13 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -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)