[gnome-shell/shell-toolkit: 26/32] Don't count not-visible children among expand children



commit 040ddf077ca5f3b9400049c866daa2683ae5aa86
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Mon Sep 21 17:56:46 2009 -0400

    Don't count not-visible children among expand children
    
    When counting how many children we should divide extra space among,
    don't count not-visible children.
    
    http://bugzilla.moblin.org/show_bug.cgi?id=6310
    https://bugzilla.gnome.org/show_bug.cgi?id=595995

 src/st/st-box-layout.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/st/st-box-layout.c b/src/st/st-box-layout.c
index 2872eca..85fff5d 100644
--- a/src/st/st-box-layout.c
+++ b/src/st/st-box-layout.c
@@ -638,6 +638,10 @@ st_box_layout_allocate (ClutterActor          *actor,
   for (l = priv->children; l; l = l->next)
     {
       gboolean expand;
+
+      if (!CLUTTER_ACTOR_IS_VISIBLE (l->data))
+        continue;
+
       clutter_container_child_get ((ClutterContainer *) actor,
                                    (ClutterActor*) l->data,
                                    "expand", &expand,



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