script-parser: Apply child and layout properties to the right actor

http://bugzilla.clutter-project.org/show_bug.cgi?id=2285

Signed-off-by: Emmanuele Bassi <ebassi@linux.intel.com>
This commit is contained in:
Bastian Winkler 2010-08-24 12:16:50 +02:00 committed by Emmanuele Bassi
parent 2e12768e3c
commit cb58f1f68c

View File

@ -1773,7 +1773,6 @@ _clutter_script_check_unresolved (ClutterScript *script,
if (parent != NULL && CLUTTER_IS_CONTAINER (parent)) if (parent != NULL && CLUTTER_IS_CONTAINER (parent))
{ {
ClutterContainer *container = CLUTTER_CONTAINER (parent); ClutterContainer *container = CLUTTER_CONTAINER (parent);
ClutterActor *actor = CLUTTER_ACTOR (oinfo->object);
GList *children, *l; GList *children, *l;
children = clutter_container_get_children (container); children = clutter_container_get_children (container);
@ -1793,10 +1792,10 @@ _clutter_script_check_unresolved (ClutterScript *script,
continue; continue;
apply_child_properties (script, container, apply_child_properties (script, container,
actor, CLUTTER_ACTOR (child),
child_info); child_info);
apply_layout_properties (script, container, apply_layout_properties (script, container,
actor, CLUTTER_ACTOR (child),
child_info); child_info);
} }