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.
This commit is contained in:
Emmanuele Bassi
2009-11-04 16:45:44 +00:00
parent c52d878032
commit 95d78acb4c
7 changed files with 297 additions and 1 deletions

View File

@ -78,6 +78,8 @@ typedef struct {
gchar *name;
JsonNode *node;
GParamSpec *pspec;
guint is_child : 1;
} PropertyInfo;
typedef struct {