Re: [Vala] Gtk.Dialog.show crashes app
- From: Nor Jaidi Tuah <norjaidi tuah ubd edu bn>
- To: vala-list gnome org
- Subject: Re: [Vala] Gtk.Dialog.show crashes app
- Date: Mon, 25 Jan 2010 07:58:47 +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.
So that is partly a compiler bug, which should have
reported "returning void when a bool is expected".
hand
Nor Jaidi Tuah
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]