Re: How to parse .ini file in extension



2012/1/11 Emmanuele Bassi <ebassi gmail com>:
> hi Stefano;
>
> On 10 January 2012 16:50, Stefano Ciancio <s ciancio gmail com> wrote:
>
>>> 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.
>
>> Anyone can help me? I am googled for some workaround but without success.
>
> you cannot use GKeyFile from introspection, as the type is not boxed
> and gobject-introspection does not know how to handle it.
>
> you should file a bug against the glib product to ask for a GType for GKeyFile.

GKeyFile is a ref-counted boxed and thus perfectly usable from gjs,
just not in the glib/gobject-introspection that come with gnome 3.2.
You can use GKeyFile in a extension if targetting a newer gnome-shell.

Giovanni

PS: really, sorry, I should have sent this sooner.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]