[Gajim-devel] Declaring return type of gajim dbus method list_contacts with dbus glib

Yann Leboulanger asterix at lagaule.org
Sun Aug 26 14:11:20 PDT 2007


Øystein Gisnås wrote:
> The signature of list_contacts in remote_control.py has changed return
> value from undefined to 'av', via 'a{ss}'. The return array has been
> changed from undefined to 'a{sv}', via 's'. See
> http://trac.gajim.org/changeset/7877 and
> http://trac.gajim.org/changeset/7811
> 
> Nautilus-sendto tries to call the method using glib binding. It worked
> with previous gaim versions, but not now. The return type is specified
> as
> dbus_g_type_get_collection ("GSList", dbus_g_type_get_map
> ("GHashTable", G_TYPE_STRING, G_TYPE_VALUE))
> 
> The error message being returned is "Expected D-BUS array, got type code 'v'"
> 
> Is the return type in nautilus-sendto wrong, or doesn't the DBus GLib
> binding work like it should here?
> 
> This bug is reported against nautilus-sendto at
> http://bugzilla.gnome.org/show_bug.cgi?id=443484 and
> https://bugs.launchpad.net/ubuntu/+source/nautilus-sendto/+bug/118475
> 
> Cheers,
> Øystein Gisnås
> Debian Maintainer

indeed there seem to be a pb in dbus signatures. unfortunatly I can't
test at home (debian unstable) because of that:

$ nautilus-sendto gajim.py
Segmentation fault

but if you can you can try to change the out_signatures to a{sv} in
src/remote_controle.py ?

Maybe the bug is in nautilus-sendto code that handles badly what
list_contacts returns ...

-- 
Yann


More information about the dbus mailing list