Nor Jaidi Tuah píše v Po 25. 01. 2010 v 07:58 +0800:
dialog.delete_event.connect (() = {dialog.hide_on_delete ();});
Perhaps you wanted return dialog.hide_on_delete (); there? I didn't do
this in a long time, bug if I recall correctly, you need to stop
delete_event by returning
mmh, I cannot reproduce it now :/
But with this test case I get really weird errors:
panc...@flubox:~$ cat test.vala
using X;
void main() {
var food = X.Drawable();
}
panc...@flubox:~$ valac test.vala --pkg x11
test.vala:4.6-4.24: warning: local variable `food' declared but never used
There is an issue in Genie trying to invoke any method named foreach.
foreach is a keyword in vala to iterate over sequences.
But, Genie uses the more pythonic approach of using the for keyword:
for item in container do
foreach is not a keyword in Genie, and it has no usage.
However,
In gtkmm there is a class called Dispatcher that
works like the usual glib signal except that the
handler is executed in, typically, the gui thread.
This avoids a lot of ugly sync locks. I wonder if there
is something equivalent in vala.
hand
Nor Jaidi Tuah