From c0b3e2e83aca99541ef5eeb15549a482ecf4f7d7 Mon Sep 17 00:00:00 2001
From: Alexander Larsson <alexl@redhat.com>
Date: Fri, 8 Jun 2012 11:29:43 +0200
Subject: [PATCH] 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 file changed, 3 insertions(+)

diff --git a/clutter/clutter-bin-layout.c b/clutter/clutter-bin-layout.c
index a1ff28a92..20c305155 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);