Thanks, this was helpful and it's work! I don't know how Vala resolve client callback, but your way just work. I didn't choose to use async, I don't want to. I just thought I have to.
Last note: Nobody noticed I forgot to inherit the DBus interface from GLib.Object... Thanks again! Tal > Date: Thu, 14 Jul 2011 14:12:14 +0100 > From: [email protected] > To: [email protected] > CC: [email protected] > Subject: Re: [Vala] complication error: Unbable to serialize a callback(by > delegate) for Dbus(using GDBus) > > On 14 يول, 2011 م 01:08, Tal Hadad wrote: > > > > This doesn't make any sense... > > Take a look in this example: > > http://live.gnome.org/Vala/DBusClientSamples/Waiting > > This method is a callback when the list of names is ready(because it's > > asyns method). > > Also, it doesn't make any sense that DBus ask the client for the list of > > addresses... > > What I suggested is to declare your function as: > > public abstract string[] list_names (); > > i.e. with no argument and a string[] as return type. But since you're > talking about async, you may try to add async to this definition: > > public async abstract string[] list_names (); > > > (btw, I don't know DBus, I'm just trying to help) > > HTH, > Abderrahim
_______________________________________________ vala-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/vala-list
