[Vala] using IOChannel.add_watch in a class
- From: "Sudharshan S" <sudharsh gmail com>
- To: vala-list gnome org
- Subject: [Vala] using IOChannel.add_watch in a class
- Date: Wed, 6 Aug 2008 16:44:15 +0530
Hi everyone,
I am having a peculiar problem. In python, we add a watch using gobject.io_add_watch (..., ..., self.callbackFunc)
and the callback would be defined as follows
def callbackFunc (*self*, ..., ....):
The IOFunc? callback takes a reference to the current object as part of its arguments. But its not the same with the IOFunc definition in vala
From glib-2.0.vapi,
public delegate bool IOFunc (IOChannel source, IOCondition condition);
public uint add_watch (IOCondition condition, IOFunc func);
This definition is preventing me from passing some data to my IOFunc from add_watch. Is there a way to do this?
Shouldn't add_watch and IOFunc have an additional "..." parameter?
Regards
Sudharshan S
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]