[Vala] Genie syntax for connect
- From: "Phil Daintree" <phil logicworks co nz>
- To: "vala-list" <vala-list gnome org>
- Subject: [Vala] Genie syntax for connect
- Date: Wed, 13 Oct 2010 01:22:15 +0000
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]