actor: Provide add/remove child and get children methods
authorEmmanuele Bassi <ebassi@linux.intel.com>
Thu, 17 Nov 2011 15:03:32 +0000 (15:03 +0000)
committerEmmanuele Bassi <ebassi@gnome.org>
Mon, 16 Jan 2012 23:35:13 +0000 (23:35 +0000)
commit53aa64aeb9107ca0afc47a4aeb8667f5820c0190
tree23208a1287aae50f82ea3ad7d37c3101ffd048e7
parent0396d3e7e6243037503d0bf220448caea13fea88
actor: Provide add/remove child and get children methods

Let's try and move away from the reverse implicit scene graph build API,
which we mutuated from GTK+, towards a more traditional node/child API.

The set_parent()/unparent() API is confusing, unless you know the
history; having a add_child()/remove_child() methods pair makes it more
explicit.

We can easily implement the old set_parent()/unparent() pair in terms of
the newly add_child()/remove_child() one.
clutter/clutter-actor.c
clutter/clutter-actor.h