On Sun, 16 Feb 2020 10:39:58 GMT, Mike Wey wrote:

On Sun, 16 Feb 2020 08:00:11 GMT, mark wrote:

However, grepping through I can't see any that handle exit (e.g., to allow for handling unsaved changes) except by using Main.quit() or core.stdc.stdlib.exit(): surely there's a nicer way?

There is also the quit function in gio.Application / gtk.Application.
The onDestroy signal for the Window is usually used for handling the unsaved changes.

Thanks, I've passed a function to addOnDestroy() for my main window and for my Quit button I call close() which ends up sending the onDestroy signal, so either way I get to handle unsaved changes.

(Had another error so hopefully this isn't duplicated!)

No duplicates, i'll see if i can find whats causing the error.

It said something like "no @ in email address", but posted fine.