From 6c62a2da988c35e5f7ad8b5f7787f14968bc037a Mon Sep 17 00:00:00 2001 From: Mike Alexander Date: Tue, 21 Jan 2014 05:04:18 +0000 Subject: [PATCH] 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. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23734 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/bin/gnucash-bin.c | 1 - src/gnome-utils/gnc-gnome-utils.c | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/gnucash-bin.c b/src/bin/gnucash-bin.c index ddaa4267c2..1bfc72b28d 100644 --- a/src/bin/gnucash-bin.c +++ b/src/bin/gnucash-bin.c @@ -590,7 +590,6 @@ inner_main (void *closure, int argc, char **argv) /* 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); diff --git a/src/gnome-utils/gnc-gnome-utils.c b/src/gnome-utils/gnc-gnome-utils.c index 42c64b5917..feeb03b747 100644 --- a/src/gnome-utils/gnc-gnome-utils.c +++ b/src/gnome-utils/gnc-gnome-utils.c @@ -669,6 +669,7 @@ gnc_gui_init(void) g_set_application_name(PACKAGE_NAME); + gnc_prefs_init(); gnc_show_splash_screen(); gnome_is_initialized = TRUE;