script: Allow parsing child properties
authorEmmanuele Bassi <ebassi@linux.intel.com>
Wed, 4 Nov 2009 16:45:44 +0000 (16:45 +0000)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Wed, 4 Nov 2009 16:50:35 +0000 (16:50 +0000)
commit95d78acb4ca72951fc9552c9fcffa645b1be739a
tree0fb95a3f848ad7a932a8752e04c970ceb5f92364
parentc52d8780325a0077f7fc6e898d902462ffbe3c8c
script: Allow parsing child properties

The ClutterScript parser needs to be extended to parse child properties
and apply them after an actor has been added to a container. In order to
distinguish child properties from regular GObject properties we can use
the "child::" prefix, e.g.:

  {
    "type" : "ClutterRectangle",
    "id" : "child-01",
    "child::has-focus" : true,
    ...
  }

Parsing child properties can be deferred to the ClutterScriptable
interface, just like regular properties.
.gitignore
clutter/clutter-script-parser.c
clutter/clutter-script-private.h
tests/conform/Makefile.am
tests/conform/test-conform-main.c
tests/conform/test-script-parser.c
tests/data/test-script-child.json [new file with mode: 0644]