Re: [Vala] Proposal for asynchronous DBus calls.

2008-10-17 Thread Sam Liddicott
If you seach recent vala posts by me, you'll see some discusion on this topic. I hope to be able to start coding something along these lines in a couple of weeks. My current plan is that such functions are generated as lamdas, with a set of wrappers for entry points. There is no need for an

Re: [Vala] Proposal for asynchronous DBus calls.

2008-10-17 Thread Sam Liddicott
* Christian Hergert wrote, On 17/10/08 08:06: This isn't totally applicable, but I thought I'd mention it before too much more async voodo. I've been working on an asynchronous toolkit library for GObject so that once we get yield return/yield break support I can implement my ideas I posted

Re: [Vala] Proposal for asynchronous DBus calls.

2008-10-17 Thread Christian Hergert
For tasks, you have two options. 1) Create a GTask with a callback and user_data. 2) Inherit from GTask and implement the execute (and optionally, cancel) methods. Keen observers will notice my challenge right away. Yes, I inherit from GObject for reference counting and general ease of use. It

Re: [Vala] Proposal for asynchronous DBus calls.

2008-10-17 Thread Sam Liddicott
* Christian Hergert wrote, On 17/10/08 09:24: For tasks, you have two options. 1) Create a GTask with a callback and user_data. 2) Inherit from GTask and implement the execute (and optionally, cancel) methods. Keen observers will notice my challenge right away. Yes, I inherit from GObject

Re: [Vala] Proposal for asynchronous DBus calls.

2008-10-17 Thread Ali Sabil
On Fri, Oct 17, 2008 at 11:25 AM, Sam Liddicott [EMAIL PROTECTED] wrote: * Christian Hergert wrote, On 17/10/08 09:24: For tasks, you have two options. 1) Create a GTask with a callback and user_data. 2) Inherit from GTask and implement the execute (and optionally, cancel) methods.

Re: [Vala] Proposal for asynchronous DBus calls.

2008-10-17 Thread Christian Hergert
Totally. Like I said, not really applicable, but figured I'd mention it. With closures, the framework will stay the same, you just get access to more locals as your user_data wont get hi-jacked by the instance, but the closure data. -- Christian On Fri, Oct 17, 2008 at 2:25 AM, Sam Liddicott

[Vala] Gcrypt bindings

2008-10-17 Thread jiqing . qiang
Hi all, I just made a still incomplete binding for gcrypt, and added it to the External Bindings page[1]. Hope to be useful. Cheers, [1] http://live.gnome.org/Vala/ExternalBindings -- Jiqing ___ Vala-list mailing list Vala-list@gnome.org

[Vala] [Bindings] GdkEven broken

2008-10-17 Thread Mihail Naydenov
Hi, Gdk.Event e = Gdk.Event(Gdk.EventType.MOTION_NOTIFY); === creates: GdkEvent*; GdkEvent _tmp4 = {0}; e = (gdk_event_new (_tmp4, GDK_MOTION_NOTIFY), _tmp4); === which results in: error: incompatible type for argument 1 of `gdk_event_new' error: too many arguments to function `gdk_event_new'

Re: [Vala] Gcrypt bindings

2008-10-17 Thread Hans Vercammen
On Fri, 2008-10-17 at 04:53 -0700, [EMAIL PROTECTED] wrote: Hi all, I just made a still incomplete binding for gcrypt, and added it to the External Bindings page[1]. Hope to be useful. Cheers, [1] http://live.gnome.org/Vala/ExternalBindings Very cool, thanks! Small question though,

Re: [Vala] Proposal for asynchronous DBus calls.

2008-10-17 Thread Yu Feng
On Fri, 2008-10-17 at 07:44 +0100, Sam Liddicott wrote: If you seach recent vala posts by me, you'll see some discusion on this topic. I really got lost in the sea of emails. What is the title of the disscussion? I hope to be able to start coding something along these lines in a couple of