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



      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]