[gtk+] widget: Make invisible widgets not propagate resizes



commit e07ff714b9eec37f4789e093ab1d199ffea29f46
Author: Benjamin Otte <otte redhat com>
Date:   Thu Oct 1 22:38:31 2015 +0200

    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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index a1d5153..12c15cb 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)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]