mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
* src/engine/gnc-book.c (gnc_book_init): switch to use non-guile
based gnc_commodity_table_add_default_data. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6348 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
74825580fb
commit
69b2f8bf32
@ -81,12 +81,13 @@ gnc_book_init (GNCBook *book)
|
||||
book->sched_xactions = NULL;
|
||||
book->sx_notsaved = FALSE;
|
||||
book->template_group = xaccMallocAccountGroup(book);
|
||||
book->commodity_table = gnc_commodity_table_new ();
|
||||
|
||||
/* FIXME: the gnc_engine_commodity_table_new() routine invokes
|
||||
* guile/scheme to load the default list of currencies. This
|
||||
* forces the engine to link to guile, which is an obvious
|
||||
* architecture flaw. */
|
||||
book->commodity_table = gnc_engine_commodity_table_new ();
|
||||
if(book->commodity_table)
|
||||
{
|
||||
if(!gnc_commodity_table_add_default_data(book->commodity_table))
|
||||
g_warning("unable to initialize book's commodity_table");
|
||||
}
|
||||
|
||||
book->data_tables = g_hash_table_new (g_str_hash, g_str_equal);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user