Re: How to parse .ini file in extension
- From: bijan binaee <bijanbina gmail com>
- To: gnome-shell-list gnome org
- Subject: Re: How to parse .ini file in extension
- Date: Wed, 11 Jan 2012 06:38:11 +0330
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
<s ciancio gmail com> 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:0 test js: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
gnome-shell-list gnome org
http://mail.gnome.org/mailman/listinfo/gnome-shell-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]