From cb58f1f68cb3863a948f5e85db58d437d45ee091 Mon Sep 17 00:00:00 2001 From: Bastian Winkler Date: Tue, 24 Aug 2010 12:16:50 +0200 Subject: [PATCH] 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 --- clutter/clutter-script-parser.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/clutter/clutter-script-parser.c b/clutter/clutter-script-parser.c index 0fe84162d..4bf40ae54 100644 --- a/clutter/clutter-script-parser.c +++ b/clutter/clutter-script-parser.c @@ -1773,7 +1773,6 @@ _clutter_script_check_unresolved (ClutterScript *script, if (parent != NULL && CLUTTER_IS_CONTAINER (parent)) { ClutterContainer *container = CLUTTER_CONTAINER (parent); - ClutterActor *actor = CLUTTER_ACTOR (oinfo->object); GList *children, *l; children = clutter_container_get_children (container); @@ -1793,10 +1792,10 @@ _clutter_script_check_unresolved (ClutterScript *script, continue; apply_child_properties (script, container, - actor, + CLUTTER_ACTOR (child), child_info); apply_layout_properties (script, container, - actor, + CLUTTER_ACTOR (child), child_info); }