[clutter] Don't allocate size to invisible BinLayout children



commit c0b3e2e83aca99541ef5eeb15549a482ecf4f7d7
Author: Alexander Larsson <alexl redhat com>
Date:   Fri Jun 8 11:29:43 2012 +0200

    Don't allocate size to invisible BinLayout children
    
    This is similar to what other layouts do, and avoids problems with
    Gtk+ actor children which warn about being allocated not enough
    space.

 clutter/clutter-bin-layout.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/clutter/clutter-bin-layout.c b/clutter/clutter-bin-layout.c
index a1ff28a..20c3051 100644
--- a/clutter/clutter-bin-layout.c
+++ b/clutter/clutter-bin-layout.c
@@ -456,6 +456,9 @@ clutter_bin_layout_allocate (ClutterLayoutManager   *manager,
       gdouble x_align, y_align;
       gboolean x_fill, y_fill, is_set;
 
+      if (!CLUTTER_ACTOR_IS_VISIBLE (child))
+        continue;
+
       meta = clutter_layout_manager_get_child_meta (manager,
                                                     container,
                                                     child);



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