Re: [Vala] Vala/DBus with dict object

2009-03-07 Thread Jürg Billeter
On Thu, 2009-02-19 at 10:49 -0300, Marcelo Boveto Shima wrote: But no luck yet. Now it is segfaulting at OpenSessionWithParameters call. I am using vala 0.5.6. am I missing something else? The dynamic D-Bus client support still uses dbus-glib based marshalling, which doesn't support arrays of

Re: [Vala] Vala/DBus with dict object

2009-02-19 Thread Marcelo Boveto Shima
Thanks. But no luck yet. Now it is segfaulting at OpenSessionWithParameters call. I am using vala 0.5.6. am I missing something else? using GLib; public class Sessiondb.Main : Object { private const string CK_NAME = org.freedesktop.ConsoleKit; private const string CK_PATH =

[Vala] Vala/DBus with dict object

2009-02-18 Thread Marcelo Boveto Shima
Hello! I am trying to invoke some ConsoleKit methods and I succeed on almost every method, but not OpenSessionWithParameters. It has the signature a(sv) (1). I don´t know what I am doing wrong. I created a method with the same signature and it worked. It works with python/dbus. The code is:

Re: [Vala] Vala/DBus with dict object

2009-02-18 Thread Frederik Sdun
Hi, the siganture a(sv) is an array of structs with a string and a value, not a Dict/HashTable. A hashtable has the signature a{av}. Regards, Frederik Am Donnerstag, den 19.02.2009, 00:32 -0300 schrieb Marcelo Boveto Shima: Hello! I am trying to invoke some ConsoleKit methods and I succeed