Re: [Vala] using IOChannel.add_watch in a class



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]