[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[no subject]



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

------=_Part_20023_24088329.1218021255592
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

<div dir="ltr">Hi everyone,<br>I am having a peculiar problem. In python, we add a watch using gobject.io_add_watch (..., ..., self.callbackFunc)<br>and the callback would be defined as follows<br>def callbackFunc (*self*, ..., ....):<br>
<br>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<br><br>From glib-2.0.vapi,<br>public delegate bool IOFunc (IOChannel source, IOCondition condition);<br>
public uint add_watch (IOCondition condition, IOFunc func);<br><br>This definition is preventing me from passing some data to my IOFunc from add_watch. Is there a way to do this?<br>Shouldn&#39;t add_watch and IOFunc have an additional &quot;...&quot; parameter?<br>
<br>Regards<br>Sudharshan S<br><br><br></div>

------=_Part_20023_24088329.1218021255592--


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]