Re: [Vala] Gtk.Dialog.show crashes app

2010-01-25 Thread Jiří Zárevúcky
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

Re: [Vala] x11.vapi is broken

2010-01-25 Thread pancake
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

[Vala] Genie does not allow foreach methods, patch included

2010-01-25 Thread Sandino Flores Moreno
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,

[Vala] signal handling in gui thread

2010-01-25 Thread Nor Jaidi Tuah
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