Re: [Vala] using IOChannel.add_watch in a class
- From: "Levi Bard" <taktaktaktaktaktaktaktaktaktak gmail com>
- To: "Sudharshan S" <sudharsh gmail com>
- Cc: vala-list gnome org
- Subject: Re: [Vala] using IOChannel.add_watch in a class
- Date: Wed, 6 Aug 2008 09:29:19 -0400
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
If you use a non-static method as the callback, you can access the
current object's members from within the callback.
--
http://www.dreamsongs.com/MobSoftware.html
http://www.gnu.org/philosophy/shouldbefree.html
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]