model: Implement ClutterScriptable interface
authorBastian Winkler <buz@netbuz.org>
Thu, 25 Feb 2010 22:47:49 +0000 (23:47 +0100)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Thu, 25 Feb 2010 23:09:11 +0000 (23:09 +0000)
commit96c31bbf0ea14c7cb6eaa824a6d5cf66d58b8d5b
tree7c7f3637a2f09f8af308bda3be3beb9d01e3a5ab
parent63279f827e9d4e517c3dc88633a8b5ed47fbd74e
model: Implement ClutterScriptable interface

Allow a ClutterModel to be constructed through the ClutterScript API.
Currently this allows a model to be generated like like this:

{
  "id" : "test-model",
  "type" : "ClutterListModel",
  "columns" : [
    [ "text-column", "gchararray" ],
    [ "int-column", "gint" ],
    [ "actor-column", "ClutterRectangle" ]
  ]
}

where 'columns' is an array containing arrays of column-name,
column-type pairs.

http://bugzilla.openedhand.com/show_bug.cgi?id=2007
.gitignore
clutter/clutter-model.c
tests/conform/test-conform-main.c
tests/conform/test-model.c
tests/data/test-script-model.json [new file with mode: 0644]