Re: [Vala] vapigen omitting arguments
- From: Evan Nemerson <evan coeus-group com>
- To: tomw ubilix com
- Cc: Vala-list <Vala-list gnome org>
- Subject: Re: [Vala] vapigen omitting arguments
- Date: Wed, 25 Jan 2012 10:09:14 -0800
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]