2008-05-28 Emmanuele Bassi <ebassi@openedhand.com>
authorEmmanuele Bassi <ebassi@openedhand.com>
Wed, 28 May 2008 12:09:41 +0000 (12:09 +0000)
committerEmmanuele Bassi <ebassi@openedhand.com>
Wed, 28 May 2008 12:09:41 +0000 (12:09 +0000)
commitc74dfa96ca13b33c2a9639a9c5343e25aa4aab6e
treec96700011d1f7f288a0f65c4c7f17ae6695d0b43
parent1502d0690ceeb97e7f729fbddf92daec5c8a40cb
2008-05-28  Emmanuele Bassi  <ebassi@openedhand.com>

Fix merging of objects with the same id.

* clutter/clutter-script.c:
(json_object_end): If there already is an ObjectInfo under the
parsed id, merge the construction with the currently stored
state.

(parse_children), (parse_signals),
(parse_behaviours): Append the newly parsed children, signals
and behaviours, in case the ObjectInfo already has unresolved
items.

(clutter_script_construct_object): Fix a typo in the type check.

(clutter_script_init): Do not copy the key inside the hash
table holding the objects - we are already holding it inside
the value.
clutter/clutter-script.c