hi;

On Thu, 2009-09-10 at 12:30 +1000, Danielle Madeley wrote:
> I was wondering why a call to clutter_actor_show_all() on a ClutterGroup
> does not recurse down the tree calling show_all() on all of its
> children?
> 
> >From clutter-group.c:
> 
>         static void
>         clutter_group_real_show_all (ClutterActor *actor)
>         {
>           clutter_container_foreach (CLUTTER_CONTAINER (actor),
>                                      CLUTTER_CALLBACK
>         (clutter_actor_show),
>                                      NULL);
>           clutter_actor_show (actor);
>         }
> 
> I would have thought it would have been correct to call
> clutter_actor_show_all() on each of the children as well.

no, ClutterGroup overrides show_all() exactly to avoid the gtk+-like
behaviour that you (and I) are used to. :-)

it's been like that since Clutter 0.2 -- the rationale being that you
might be using a Group to hold invisible placeholders for later
animations, or source actors for clones, and calling show_all() would
display them. in theory, we might add a private "no-show-all" flag and a
clutter_actor_set_no_show_all() - but as far as I'm concerned, if you're
using ClutterGroup you're off to interesting behaviours anyway, and you
should probably be using your own container.

ciao,
 Emmanuele.

-- 
Emmanuele Bassi, Senior Engineer        | emmanuele.ba...@intel.com
Intel Open Source Technology Center     | http://oss.intel.com

-- 
To unsubscribe send a mail to clutter+unsubscr...@o-hand.com

Reply via email to