[actor] Force a relayout on set_parent()
authorChris Lord <chris@linux.intel.com>
Thu, 5 Feb 2009 11:04:34 +0000 (11:04 +0000)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Thu, 5 Feb 2009 19:54:48 +0000 (19:54 +0000)
commit6bc7f4c723de90c41afa622dc3451ad7697786e0
tree3fe079bd9e351a614fdb4cdcdeb9f28ad3b1664b
parent9cf02bfdb9a65500688fde1c4485f6cc968c385f
[actor] Force a relayout on set_parent()

The current code that handles the invariant that the new parent
of an actor needing a layout should also be queued for relayout
is hitting the short-circuiting we do in the queue_relayout()
method.

In order to fix this we can forcibly set the actor to need a
width/height request and an allocation; then we queue a relayout
on the parent.

Signed-off-by: Emmanuele Bassi <ebassi@linux.intel.com>
clutter/clutter-actor.c