mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Gnc-Prefs: migrate first preference option (first_user) to new preference system
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23227 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
9c2c7e12cc
commit
ac1003cc4e
@ -770,8 +770,7 @@ inner_main (void *closure, int argc, char **argv)
|
||||
gnc_file_open_file(fn, /*open_readonly*/ FALSE);
|
||||
g_free(fn);
|
||||
}
|
||||
else if (gnc_gconf_get_bool("dialogs/new_user", "first_startup", &error)
|
||||
&& !error)
|
||||
else if (gnc_prefs_get_bool(GNC_PREFS_GROUP_NEW_USER, GNC_PREF_FIRST_STARTUP))
|
||||
{
|
||||
gnc_destroy_splash_screen();
|
||||
gnc_ui_new_user_dialog();
|
||||
|
@ -30,18 +30,15 @@
|
||||
#include "dialog-file-access.h"
|
||||
#include "assistant-hierarchy.h"
|
||||
#include "gnc-engine.h"
|
||||
#include "gnc-gconf-utils.h"
|
||||
#include "gnc-hooks.h"
|
||||
#include "gnc-ui.h"
|
||||
#include "gnc-file.h"
|
||||
#include "gnc-prefs.h"
|
||||
#include "gnc-main-window.h"
|
||||
#include "gnc-plugin-page-account-tree.h"
|
||||
#include "gnc-session.h"
|
||||
#include "app-utils/gnc-ui-util.h" // for gnc_get_current_book
|
||||
|
||||
#define GCONF_SECTION "dialogs/new_user"
|
||||
#define FIRST_STARTUP "first_startup"
|
||||
|
||||
/* This static indicates the debugging module that this .o belongs to. */
|
||||
static QofLogModule log_module = GNC_MOD_GUI;
|
||||
|
||||
@ -60,7 +57,7 @@ gnc_new_user_dialog_register_qif_assistant (void (*cb_fcn)(void))
|
||||
void
|
||||
gnc_set_first_startup (gboolean first_startup)
|
||||
{
|
||||
gnc_gconf_set_bool(GCONF_SECTION, FIRST_STARTUP, first_startup, NULL);
|
||||
gnc_prefs_set_bool (GNC_PREFS_GROUP_NEW_USER, GNC_PREF_FIRST_STARTUP, first_startup);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -23,6 +23,9 @@
|
||||
#ifndef DIALOG_NEW_USER_H
|
||||
#define DIALOG_NEW_USER_H
|
||||
|
||||
#define GNC_PREFS_GROUP_NEW_USER "dialogs.new_user"
|
||||
#define GNC_PREF_FIRST_STARTUP "first_startup"
|
||||
|
||||
void gnc_ui_new_user_dialog (void);
|
||||
void gnc_set_first_startup (gboolean first_startup);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user