Add hooks just once in app_utils module init.

Also don't try to load imaginary module.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12899 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Chris Shoemaker 2006-01-19 17:58:02 +00:00
parent 7bbe9277ba
commit 540cca4e7a
2 changed files with 4 additions and 5 deletions

View File

@ -75,11 +75,11 @@ libgncmod_app_utils_LTX_gnc_module_init(int refcount)
lmod("(g-wrapped gw-app-utils)");
lmod("(gnucash app-utils)");
gnc_hook_add_dangler(HOOK_STARTUP, (GFunc)gnc_exp_parser_init, NULL);
gnc_hook_add_dangler(HOOK_SHUTDOWN, (GFunc)app_utils_shutdown, NULL);
if (refcount == 0)
if (refcount == 0) {
gnc_component_manager_init ();
gnc_hook_add_dangler(HOOK_STARTUP, (GFunc)gnc_exp_parser_init, NULL);
gnc_hook_add_dangler(HOOK_SHUTDOWN, (GFunc)app_utils_shutdown, NULL);
}
return TRUE;
}

View File

@ -161,7 +161,6 @@ inner_main (void *closure, int argc, char **argv)
/* module initializations go here */
gnc_module_load("gnucash/app-utils", 0);
gnc_module_load("gnucash/gw-engine", 0);
gnc_module_load("gnucash/engine", 0);
gnc_module_load("gnucash/register/ledger-core", 0);
gnc_module_load("gnucash/register/register-core", 0);