2007-10-27 Emmanuele Bassi <ebassi@openedhand.com>
authorEmmanuele Bassi <ebassi@openedhand.com>
Sat, 27 Oct 2007 19:49:39 +0000 (19:49 +0000)
committerEmmanuele Bassi <ebassi@openedhand.com>
Sat, 27 Oct 2007 19:49:39 +0000 (19:49 +0000)
commitd42153dc690a83446007e8217cf12b7cd94ab70e
tree5907b0b3af4276da1d43b6f2a7c0624107fee357
parent35132fb5deb8bd7f693ef5da0bec3d192a0f77f9
2007-10-27  Emmanuele Bassi  <ebassi@openedhand.com>

* clutter/json/json-parser.c:
(json_scanner_msg_handler): Set the GError to be returned by
the parsing functions into the GScanner error message handler.

(json_parser_object): Return the symbol token in case we have
a parse error after the member name.

(json_parser_load_from_data): Propagate the error set in the
message handler, if any.

* clutter/json/json-node.c (json_node_free): Unref the objects
only if are set, to avoid a couple of needless criticals we
get on error.

* tests/test-script.json: More properties.
ChangeLog
clutter/json/json-node.c
clutter/json/json-parser.c
tests/test-script.json