Move preferences and configuration variables into app-utils modules.

Much module refactoring & cleanup.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5391 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Dave Peticolas
2001-09-20 09:18:50 +00:00
parent a5eab3a8e9
commit 0a8c78bcc1
34 changed files with 329 additions and 429 deletions

View File

@@ -526,7 +526,6 @@ gnucash_ui_init(void)
gnc_recn_cell_set_string_getter (gnc_get_reconcile_str);
/* gnc_default_ui_start */
gnucash_style_init();
gnucash_color_init();
@@ -558,17 +557,6 @@ gnucash_ui_init(void)
return 0;
}
static gboolean hasstarted = FALSE;
void
gnc_default_ui_start(void)
{
if (!hasstarted)
{
hasstarted = TRUE;
gnc_get_current_book ();
}
}
/* ============================================================== */
void
@@ -618,11 +606,10 @@ gnc_ui_destroy (void)
/* ============================================================== */
int
gnc_ui_show_main_window(void)
gnc_ui_show_main_window (void)
{
/* Initialize gnome */
gnucash_ui_init();
gnc_default_ui_start();
/* Get the main window on screen. */
while (gtk_events_pending())
@@ -707,15 +694,6 @@ gnc_ui_start_event_loop (void)
return 0;
}
int
gnc_ui_main(void)
{
gnc_ui_show_main_window();
return gnc_ui_start_event_loop();
}
/* ============================================================== */
gboolean
@@ -726,31 +704,6 @@ gnucash_ui_open_file(const char name[])
/* ============================================================== */
int
gnucash_ui_select_file(void)
{
gnc_file_open ();
return 1;
}
/* ============================================================== */
const char *
gnc_register_default_font(void)
{
return gnucash_style_get_default_register_font_name();
}
/* ============================================================== */
const char *
gnc_register_default_hint_font(void)
{
return gnucash_style_get_default_register_hint_font_name();
}
/* ============================================================== */
/* gnc_configure_date_format_cb
* Callback called when options change - sets dateFormat to the current
* value on the scheme side and refreshes register windows