r23734 - gnucash/trunk/src - Fix r23732. By the time we get to inner_main it's too late to call gnc_prefs_init.

Mike Alexander mta at code.gnucash.org
Tue Jan 21 00:04:19 EST 2014


Author: mta
Date: 2014-01-21 00:04:18 -0500 (Tue, 21 Jan 2014)
New Revision: 23734
Trac: http://svn.gnucash.org/trac/changeset/23734

Modified:
   gnucash/trunk/src/bin/gnucash-bin.c
   gnucash/trunk/src/gnome-utils/gnc-gnome-utils.c
Log:
Fix r23732.  By the time we get to inner_main it's too late to call gnc_prefs_init.
By then the main window has been created so it doesn't get hooked into the prefs system.
One symptom of this is that the "tab position" pref doesn't affect that window.

Modified: gnucash/trunk/src/bin/gnucash-bin.c
===================================================================
--- gnucash/trunk/src/bin/gnucash-bin.c	2014-01-20 22:53:08 UTC (rev 23733)
+++ gnucash/trunk/src/bin/gnucash-bin.c	2014-01-21 05:04:18 UTC (rev 23734)
@@ -590,7 +590,6 @@
 
     /* TODO: After some more guile-extraction, this should happen even
        before booting guile.  */
-    gnc_prefs_init ();
     gnc_main_gui_init();
 
     gnc_hook_add_dangler(HOOK_UI_SHUTDOWN, (GFunc)gnc_file_quit, NULL);

Modified: gnucash/trunk/src/gnome-utils/gnc-gnome-utils.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-gnome-utils.c	2014-01-20 22:53:08 UTC (rev 23733)
+++ gnucash/trunk/src/gnome-utils/gnc-gnome-utils.c	2014-01-21 05:04:18 UTC (rev 23734)
@@ -669,6 +669,7 @@
 
     g_set_application_name(PACKAGE_NAME);
 
+    gnc_prefs_init();
     gnc_show_splash_screen();
 
     gnome_is_initialized = TRUE;



More information about the gnucash-changes mailing list