On Wed, 2012-01-25 at 18:40 +0100, tomw wrote:
> Thanks again, the approach to call GLib.Object.new seems to work.
> However, I'm still struggling with how to pass the callback to the 
> init_async method. The description states :
> 
> Parameters:
> user_data     the data to pass to callback function
> callback      a AsyncReadyCallback to call when the request is                
>                 satisfied
> io_priority   the I/O priority of the operation.
> cancellable   optional Cancellable object, null to ignore.
> 
> However, only the io_priority and cancellable are accepted. If I add an
> additional parameter, the compiler complains. It may be a stupid issue
> but somehow it does not work.

The tutorial has a some good information on using asynchronous methods:
https://live.gnome.org/Vala/Tutorial#Asynchronous_Methods


-Evan

_______________________________________________
vala-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/vala-list

Reply via email to