[Vala] Closure problem in Gtk.AccelGroup
- From: jezra lickter <jezra jezra net>
- To: vala-list gnome org
- Subject: [Vala] Closure problem in Gtk.AccelGroup
- Date: Fri, 11 Jun 2010 11:21:14 -0700
Hello,
basing my work on the documentation found at
http://valadoc.org/gtk+-2.0/Gtk.AccelGroup.connect.html
I am trying to connect an acclegroup to a Closure
code:
AccelGroup accel = new AccelGroup();
accel.connect('q', Gdk.ModifierType.CONTROL_MASK,
Gtk.AccelFlags.VISIBLE,
()=> {
stdout.printf("quit");
} );
When I compile my application, I get the following error in regards to
the closure
"error: lambda expression not allowed in this context"
Can someone please tell me what I am doing wrong or point me to a
working example of using AccelGroup.connect()?
jezra
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]