r23679 - gnucash/trunk/src/gnome-utils - Bug 721667 - Accelerator key map loaded from one file and saved

John Ralls jralls at code.gnucash.org
Fri Jan 10 18:16:59 EST 2014


Author: jralls
Date: 2014-01-10 18:16:59 -0500 (Fri, 10 Jan 2014)
New Revision: 23679
Trac: http://svn.gnucash.org/trac/changeset/23679

Modified:
   gnucash/trunk/src/gnome-utils/gnc-gnome-utils.c
Log:
Bug 721667 - Accelerator key map loaded from one file and saved

to a different one which is ignored

So don't save it if using MAC_INTEGRATION. Changing accels on the
fly doesn't work with Mac menus anyway.

Modified: gnucash/trunk/src/gnome-utils/gnc-gnome-utils.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-gnome-utils.c	2014-01-10 23:13:56 UTC (rev 23678)
+++ gnucash/trunk/src/gnome-utils/gnc-gnome-utils.c	2014-01-10 23:16:59 UTC (rev 23679)
@@ -748,11 +748,11 @@
     if (gnome_is_running && !gnome_is_terminating)
     {
         gnome_is_terminating = TRUE;
-
+#ifndef MAC_INTEGRATION
         map = gnc_build_dotgnucash_path(ACCEL_MAP_NAME);
         gtk_accel_map_save(map);
         g_free(map);
-
+#endif /* MAC_INTEGRATION */
         gtk_main_quit();
     }
 }



More information about the gnucash-changes mailing list