[gtk+/wip/otte/queue-resize: 31/32] widget: Make invisible widgets not propagate resizes



commit 0b92fab92154fe4151e26cb8450a0adce7d1cddc
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 c8be68b..2eef5cb 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -5632,7 +5632,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]