window manager exit doesn't work?

Kevin Finn kevinfinn@mediaone.net
Sun, 15 Apr 2001 17:20:15 -0500


     With the latest CVS, using the window manager's "exit"
functionality doesn't really exit gnucash, although it looks like it
since it closes all windows.  The following change fixes the problem for
me, although since it seems like this problem was introduced during the
MDI changes recently, and I haven't tried this with all the different
MDI modes, I'm not sure if this is really the correct solution.
     The gnc_shutdown call seems to be what the "Exit" toolbar button
does, and gnucash does exit correctly if you just click on that button
rather than the WM exit control.

     Kevin


--- ./src/gnome/window-main.c   Sun Apr 15 06:01:03 2001
+++ ./src/gnome/window-main.c   Sun Apr 15 16:57:54 2001
@@ -69,7 +69,8 @@ static void gnc_main_window_create_menus
 
 static void
 gnc_main_window_destroy_cb(GtkObject * w) {
-  gnc_ui_destroy();
+   gnc_shutdown(0);
+  /* gnc_ui_destroy(); */
 }
 
 



-- 

Kevin Finn
kevinfinn@mediaone.net