mutter/tests/test-script.json
Emmanuele Bassi d42153dc69 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.
2007-10-27 19:49:39 +00:00

62 lines
1.4 KiB
JSON

{
"My Scene" : {
"id" : "main-stage",
"type" : "ClutterStage",
"color" : "white",
"width" : 500,
"height" : 400,
"children" : [
{
"id" : "red-button",
"type" : "ClutterRectangle",
"color" : "#ff0000ff",
"x" : 50,
"y" : 50,
"width" : 100,
"height" : 100,
"visible" : true,
"reactive" : true,
"behaviours" : [ "fade-behaviour", "path-behaviour" ]
},
{
"id" : "green-button",
"type" : "ClutterRectangle",
"color" : "#00ff00ff",
"border-width" : 5,
"border-color" : "#00cc00ff",
"x" : 200,
"y" : 50,
"width" : 100,
"height" : 100,
"visible" : true,
"reactive" : true
},
{
"id" : "red-hand",
"type" : "ClutterTexture",
"pixbuf" : "redhand.png",
"x" : 50,
"y" : 50,
"opacity" : 100,
"visible" : true,
"behaviours" : [ "rotate-behaviour", "fade-behaviour" ]
},
{
"id" : "label",
"type" : "ClutterLabel",
"x" : 50,
"y" : 200,
"width" : 400,
"text" : "Clutter\tScript",
"font-name" : "Sans 24px",
"color" : "black",
"alignment" : "center",
"wrap" : false,
"ellipsize" : "none",
"visible" : true
}
"blue-button",
]
}
}