Re: [Vala] bug in new signal connect syntax



Maybe it's possible to get around with using TreeView as sender, but I
think still it is wrong or at least unnecessary. 
The "sender" in this use case is the 'Bowser' class derived from
TreeView - not TreeView itself.
Also, that callback style was possible with the old signal connection
syntax where vala seems to be able to check for super classes itself.

Now the user has to find out from what super class the signal is
actually coming through, which is OBVIOUS in many cases but sometimes
you would have to crawl through documentation. 
This was unnecessary before. 
So why does it have to be done now with the new syntax?
Regards
Jörn



Am Montag, den 07.12.2009, 23:50 +0100 schrieb Nicolas:
Hi Jörn,

Why not using this function:

private void on_row_activated(TreeView sender, TreePath treepath, 
TreeViewColumn column)

Regards,
Nicolas.






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