On Tue, 2008-04-22 at 10:28 -0500, Malluru, Puri wrote: > Hi > > I am building a simple template based screen mechanism using JSON > files and loading them into clutter script object. I am wondering > whether there is any way to create arbitrary name-value pairs in JSON > file that can be queried using clutter script api functions.
no, not at the moment at the least. > Below is an example of a JSON file that I have. I was able to query > for “screen” and get the ClutterGroup object just fine. But I like to > query for “screenname” and “nextscreen” and get their values. I don’t > see any errors when I merge this file into a script object. But I get > NULL object when I do clutter_get_object(). because they are not GObjects, but just strings. ClutterScript is a way to define objects, not custom data. you might want to use a separate JSON file for that, probably parsing it directly with JsonParser from json-glib. ciao, Emmanuele. -- Emmanuele Bassi, OpenedHand Ltd. Unit R, Homesdale Business Centre 216-218 Homesdale Rd., Bromley - BR12QZ http://www.o-hand.com -- To unsubscribe send a mail to [EMAIL PROTECTED]
