We now have shutdown-hook and startup-hook, and the user can add their
own functions to these with (gnc:hook-add-dangler ...).
There are also two new functions on the C side which should be
respected (from gnucash.h):
void gnc_shutdown(const int exit_status);
/* All C code should call this function to exit. It makes sure both
the C and Scheme sides are cleaned up (including calling any
scheme shutdown hooks) before it calls exit(). */
/* Private (normally you shouldn't be calling these */
void _gnc_shutdown_(const int exit_status);
/* Any code that needs to be called to clean up the C side should be
put in here. Don't put it anywhere else or it may not be called if
a quit is initiated from the scheme side. */
I've fixed the C side to respect gnc_shutdown (in closeMainWindow),
but any future exit's should also be handled through this function.
Thanks
--
Rob Browning <[EMAIL PROTECTED]> PGP=E80E0D04F521A094 532B97F5D64E3930
----- %< -------------------------------------------- >% ------
The GnuCash / X-Accountant Mailing List
To unsubscribe, send mail to [EMAIL PROTECTED] and
put "unsubscribe gnucash-devel [EMAIL PROTECTED]" in the body