Restore the auto decimal places settings from gconf at startup. Fixes

#344938.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14369 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
David Hampton 2006-06-15 03:54:53 +00:00
parent 59817c3dca
commit ea0bd0c5a1
2 changed files with 14 additions and 0 deletions

View File

@ -1,5 +1,8 @@
2006-06-14 David Hampton <hampton@employees.org>
* src/app-utils/gnc-ui-util.c: Restore the auto decimal places
settings from gconf at startup. Fixes #344938.
* src/business/business-gnome/glade/invoice.glade: The Chargeback
and Extra Payments sections of the bill should not expand to fill
extra space.

View File

@ -2092,10 +2092,21 @@ gnc_set_auto_decimal_places (GConfEntry *entry, gpointer user_data)
auto_decimal_places = gconf_value_get_float(value);
}
static void
gnc_auto_decimal_init (void)
{
auto_decimal_enabled =
gnc_gconf_get_bool(GCONF_GENERAL, "auto_decimal_point", NULL);
auto_decimal_places =
gnc_gconf_get_float(GCONF_GENERAL, "auto_decimal_places", NULL);
}
void
gnc_ui_util_init (void)
{
gnc_configure_account_separator ();
gnc_auto_decimal_init();
gnc_gconf_general_register_cb(KEY_ACCOUNT_SEPARATOR,
(GncGconfGeneralCb)gnc_configure_account_separator,
NULL);