Re: [Vala] [genie] closures in genie
- From: "diegotoral gmail com" <diegotoral gmail com>
- To: Klaus Rotter <klaus rotters de>
- Cc: vala-list gnome org
- Subject: Re: [Vala] [genie] closures in genie
- Date: Tue, 8 May 2012 18:58:12 -0300
Check this, updated, example:
http://pastebin.com/vRMWHrNp
On Tue, May 8, 2012 at 4:37 PM, Klaus Rotter <klaus rotters de> wrote:
Hello!
An old (deprecated) way to define closures in genie is e.g:
var button = new Button.with_label("Click me!")
button.clicked += def()
button.label = "Thank you"
However, the compiler throws a warning, that this way is deprecated and
recommends 'connect' instead. But, I really can't figure out the syntax
connect works. Has anybody an example for this? Thank you!
--
Klaus Rotter * klaus at rotters dot de * www.rotters.de
______________________________**_________________
vala-list mailing list
vala-list gnome org
http://mail.gnome.org/mailman/**listinfo/vala-list<http://mail.gnome.org/mailman/listinfo/vala-list>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]