diff --git a/ChangeLog b/ChangeLog index 7700cae2c4..413727091b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2006-06-14 David Hampton + * 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. diff --git a/src/app-utils/gnc-ui-util.c b/src/app-utils/gnc-ui-util.c index 8e19f078c2..ef7b8943b5 100644 --- a/src/app-utils/gnc-ui-util.c +++ b/src/app-utils/gnc-ui-util.c @@ -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);