On Tue, 2010-07-27 at 15:46 -0700, Quyen Do wrote: > Hi all, > > Please help me with this related to properties in json, clutter, and > gob. > > If I have a string value in the json file, then I know how to declare > it in the myfile.gob.
this is really a question for GOB. have you also looked at Vala instead? > For example, if in json file, I have: > "my_string" : "hello world" > then in myfile.gob, I would declare the property "my_string" as: > private gchar * my_string; > property STRING my_string > (nick = "my string", > blurb = "my string", > default_value = NULL, > export, > link); you want to declare your property as a boxed GParamSpec holding a G_TYPE_STRV. JSON-GLib (which Clutter uses internally) has automatic unboxing of that type from an array of strings into a gchar**. ciao, Emmanuele. -- Emmanuele Bassi, Open Source Software Engineer Intel Open Source Technology Center _______________________________________________ clutter-app-devel-list mailing list [email protected] http://lists.clutter-project.org/listinfo/clutter-app-devel-list
