you can find source of it in the source of glib and check in there is it implement under gobject introspection or not
the error show that it not implement in the name that you use it. i think if you find a prototype like glib_keyfile_[Some METHOD NAME HERE] you could call it like your could else you couldnt for more information about GI work please see http://developer.gnome.org/gobject/2.30/gtype-conventions.html On Tue, Jan 10, 2012 at 8:20 PM, Stefano Ciancio <[email protected]>wrote: > > On 12/15/2011 11:30 AM, Stefano Ciancio wrote: > >> Hi all, >> >> I am developing a little extension for Gnome Shell and I need to read >> and parse an .ini file from my system. >> >> I find a GLib object (GKeyFile) that would be suitable for this, but I >> cannot find doc, code, example on how to use it in shell. >> >> With the code below: >> >> const GLib = imports.gi.GLib; >> let kf = new GLib.KeyFile(); >> >> I obtain the following error: >> >> JS ERROR: !!! Exception was: Error: Unable to construct boxed >> type KeyFile since it has no zero-args <constructor>, can only wrap an >> existing one >> JS ERROR: !!! lineNumber = '0' >> JS ERROR: !!! fileName = '"gjs_throw"' >> JS ERROR: !!! stack = '"("Unable to construct boxed type >> KeyFile since it has no zero-args <constructor>, can only wrap an >> existing one")@gjs_throw:[email protected]:12"' >> JS ERROR: !!! message = '"Unable to construct boxed type >> KeyFile since it has no zero-args <constructor>, can only wrap an >> existing one"' >> Error: Unable to construct boxed type KeyFile since it has no >> zero-args <constructor>, can only wrap an existing one >> >> Can you help me? >> >> Thanks, >> Stefano C. >> >> > Anyone can help me? I am googled for some workaround but without success. > > > ______________________________**_________________ > gnome-shell-list mailing list > [email protected] > http://mail.gnome.org/mailman/**listinfo/gnome-shell-list<http://mail.gnome.org/mailman/listinfo/gnome-shell-list> >
_______________________________________________ gnome-shell-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/gnome-shell-list
