[Vala] Genie syntax for connect



There are a number of examples at code.valide.org that show the old syntax for connect ing signals to 
functions for the most part the function name is simply a parameter to the connect() method of the signal. 
However, where the function is coded in line there was an alternative syntax like:

Slider.value_changed += def (s)
    spin_box.set_value(s.get_value())

It still works but is depreciated. What's the new syntax for doing this?

Thanks

Phil
Phil Daintree
Logic Works Ltd - 0275 567890



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