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 true.That fixes the problem. Thanks.
You're welcome. :)
So that is partly a compiler bug, which should have reported "returning void when a bool is expected".
Yes, control flow analysis of closures is incomplete. See https://bugzilla.gnome.org/show_bug.cgi?id=606478
hand Nor Jaidi Tuah
Attachment:
signature.asc
Description: Toto je digitálně podepsaná část zprávy