[Gnucash-changes] Remove duplicate function.

David Hampton hampton at cvs.gnucash.org
Mon Oct 3 10:37:37 EDT 2005


Log Message:
-----------
Remove duplicate function.

Tags:
----
gnucash-gnome2-dev

Modified Files:
--------------
    gnucash:
        ChangeLog
    gnucash/src/gnome:
        top-level.c

Revision Data
-------------
Index: ChangeLog
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/ChangeLog,v
retrieving revision 1.1487.2.304
retrieving revision 1.1487.2.305
diff -LChangeLog -LChangeLog -u -r1.1487.2.304 -r1.1487.2.305
--- ChangeLog
+++ ChangeLog
@@ -1,3 +1,10 @@
+2005-10-03  David Hampton  <hampton at employees.org>
+
+	* src/gnome/top-level.c: Remove duplicate function.
+
+	* src/gnome-utils/dialog-utils.[ch]: Pull the local
+	gtk_window_present() function and use the one in gtk2.
+
 2005-10-02  David Hampton  <hampton at employees.org>
 
 	* src/import-export/import-backend.c:
Index: top-level.c
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/gnome/top-level.c,v
retrieving revision 1.140.4.30
retrieving revision 1.140.4.31
diff -Lsrc/gnome/top-level.c -Lsrc/gnome/top-level.c -u -r1.140.4.30 -r1.140.4.31
--- src/gnome/top-level.c
+++ src/gnome/top-level.c
@@ -467,30 +467,4 @@
     free(format_code);
 }
 
-
-
-/*  Shutdown gnucash.  This function will call the Scheme side of
- *  GnuCash to initiate an orderly shutdown, and when that has
- *  finished it will exit the program.
- */
-void
-gnc_shutdown (int exit_status)
-{
-  /*SCM scm_shutdown = gnc_scm_lookup("gnucash bootstrap", "gnc:shutdown");*/
-  SCM scm_shutdown = scm_c_eval_string("gnc:shutdown");
-
-  if(scm_procedure_p(scm_shutdown) != SCM_BOOL_F)
-  {
-    SCM scm_exit_code = scm_long2num(exit_status);    
-    scm_call_1(scm_shutdown, scm_exit_code);
-  }
-  else
-  {
-    /* Either guile is not running, or for some reason we
-       can't find gnc:shutdown. Either way, just exit. */
-    g_warning("couldn't find gnc:shutdown -- exiting anyway.");
-    exit(exit_status);
-  }
-}
-
 /****************** END OF FILE **********************/


More information about the gnucash-changes mailing list