Move dialog-totd from gnome to gnome-utils.

Do low-level application initialization even before booting guile.
   This means the splash and totd come up almost instantly. 


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12979 57a11ea4-9604-0410-9ed3-97b8803252fd
zzzoldfeatures/register-rewrite
Chris Shoemaker 21 years ago
parent e9135b6e67
commit f84d6e2d81

@ -353,7 +353,7 @@ inner_main (void *closure, int argc, char **argv)
/* TODO: After some more guile-extraction, this should happen even
before booting guile. */
gnc_main_gui_init();
qof_log_set_level_global(loglevel);
load_system_config();
@ -420,6 +420,7 @@ int main(int argc, char ** argv)
}
gnc_gnome_init (argc, argv, VERSION);
gnc_gui_init();
scm_boot_guile(argc, argv, inner_main, 0);
exit(0); /* never reached */
}

@ -40,6 +40,7 @@ libgncmod_gnome_utils_la_SOURCES = \
dialog-preferences.c \
dialog-query-list.c \
dialog-reset-warnings.c \
dialog-totd.c \
dialog-transfer.c \
dialog-utils.c \
druid-utils.c \
@ -104,6 +105,7 @@ gncinclude_HEADERS = \
dialog-options.h \
dialog-query-list.h \
dialog-reset-warnings.h \
dialog-totd.h \
dialog-transfer.h \
dialog-utils.h \
druid-utils.h \

@ -47,6 +47,7 @@
#include "gnc-icons.h"
#include "dialog-options.h"
#include "dialog-commodity.h"
#include "dialog-totd.h"
#include "gnc-ui-util.h"
#include <gnc-dir.h>
@ -403,6 +404,7 @@ gnc_gui_init(void)
g_free(map);
gnc_load_stock_icons();
gnc_totd_dialog(GTK_WINDOW(main_window), TRUE);
return main_window;
}

@ -35,7 +35,6 @@ libgncgnome_la_SOURCES = \
dialog-sx-from-trans.c \
dialog-sxsincelast.c \
dialog-tax-info.c \
dialog-totd.c \
dialog-userpass.c \
dialog-scheduledxaction.c \
druid-acct-period.c \
@ -98,7 +97,6 @@ noinst_HEADERS = \
dialog-progress.h \
dialog-sx-from-trans.h \
dialog-sxsincelast.h \
dialog-totd.h \
dialog-scheduledxaction.h \
druid-acct-period.h \
druid-hierarchy.h \

@ -198,10 +198,7 @@ gnc_html_price_url_cb (const char *location, const char *label,
void
gnc_main_gui_init (void)
{
GncMainWindow *main_window;
ENTER(" ");
main_window = gnc_gui_init();
if (!gnucash_style_init())
gnc_shutdown(1);
@ -215,8 +212,6 @@ gnc_main_gui_init (void)
gnc_ui_sx_initialize();
gnc_totd_dialog(GTK_WINDOW(main_window), TRUE);
/* FIXME Remove this test code */
gnc_plugin_manager_add_plugin (
gnc_plugin_manager_get (), gnc_plugin_account_tree_new ());

Loading…
Cancel
Save