Re: libseed-list seed - GVariant /GDBus
- From: tomw <tomw ubilix com>
- To: Alan Knowles <alan akbkhome com>
- Cc: libseed-list gnome org, tomw <libseed-list-bounces gnome org>
- Subject: Re: libseed-list seed - GVariant /GDBus
- Date: Fri, 14 Jan 2011 17:35:48 +0100
Thanks, as always :-)
perhaps I've been not able to read the doc properly:
http://library.gnome.org/devel/glib/stable/glib-GVariant.html#g-variant-new-string
how should that look like for an array:
var a = new GLib.Variant.string("string a")
var b = new GLib.Variant.string("string b")
new GLib.Variant.array(GLib.Variant.TYPE_STRING, [a,b], 2)
at least this is how I would read the docs:
http://library.gnome.org/devel/glib/stable/glib-GVariant.html#g-variant-new-array
On Fri, 2011-01-14 at 20:33 +0800, Alan Knowles wrote:
> new GLib.Variant.string ("the string")
>
> that's ones in the docs ;)
which docs are you referring to ?
>
> Regards
> Alan
>
>
> --- On 11/Jan/2011, tomw wrote:
> > Hi folks,
> >
> > in an attempt to use Gio.DBus instead of seed dbus I was trying to use
> > GVariants. Unfortunately simple declaration which work perfectly well in
> > Python do not work in seed.
> >
> > Python:
> >
> > >>> GLib.Variant.new_string("test")
> > <GLib.Variant('test')>
> >
> > >>> GLib.Variant("s", "test")
> > <GLib.Variant('test')>
> >
> > seed:
> >
> > > GLib.Variant.new_string("test");
> > TypeError Result of expression 'GLib.Variant.new_string' [undefined] is
> > not a function.
> >
> > As seed dbus on dbus-glib does not work properly either
> > (https://bugzilla.gnome.org/show_bug.cgi?id=615199) migrating to GDBus
> > would be a potential solution to make dbus usage in seed applications
> > work.
> >
> > Any idea, how to solve the issue?
> >
> > best, tomw
> >
> > _______________________________________________
> > libseed-list mailing list
> > libseed-list gnome org
> > http://mail.gnome.org/mailman/listinfo/libseed-list
>
> _______________________________________________
> libseed-list mailing list
> libseed-list gnome org
> http://mail.gnome.org/mailman/listinfo/libseed-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]