From c54e43660916ebd3c624470e9a3139fafb63864e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20K=C3=B6hler?= Date: Thu, 21 Jun 2007 13:28:30 +0000 Subject: [PATCH] Remove UI and register parts of the "Enable euro support" option, #449395. * In euro currency registers, treat the option as always-on, i.e. show amounts both in the old currency and EUR * Remove the option from the preferences dialog * Keep gconf key, but default to disabled. If enabled, the account tree view page shows an additional EUR total line in the summary bar git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16196 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/gnome-utils/glade/preferences.glade | 86 +++++++------------ src/gnome/gnc-split-reg.c | 3 +- .../schemas/apps_gnucash_general.schemas.in | 2 +- 3 files changed, 33 insertions(+), 58 deletions(-) diff --git a/src/gnome-utils/glade/preferences.glade b/src/gnome-utils/glade/preferences.glade index a8cbdf8320..aeeb1a1238 100644 --- a/src/gnome-utils/glade/preferences.glade +++ b/src/gnome-utils/glade/preferences.glade @@ -1640,7 +1640,7 @@ 6 True - 17 + 16 4 False 0 @@ -1698,30 +1698,6 @@ - - - True - Enables support for the European Union EURO currency. - True - _Enable euro support - True - GTK_RELIEF_NORMAL - True - False - False - True - - - 0 - 4 - 4 - 5 - 12 - fill - - - - True @@ -1800,8 +1776,8 @@ 1 3 - 13 - 14 + 12 + 13 fill fill @@ -1829,8 +1805,8 @@ 0 1 - 13 - 14 + 12 + 13 12 fill @@ -1853,8 +1829,8 @@ 0 4 - 12 - 13 + 11 + 12 12 fill @@ -1882,8 +1858,8 @@ 0 1 - 11 - 12 + 10 + 11 fill @@ -1910,8 +1886,8 @@ 0 1 - 10 - 11 + 9 + 10 fill @@ -1939,8 +1915,8 @@ 0 1 - 9 - 10 + 8 + 9 12 fill @@ -1963,8 +1939,8 @@ 1 2 - 9 - 10 + 8 + 9 fill @@ -1986,8 +1962,8 @@ 0 4 - 8 - 9 + 7 + 8 12 fill @@ -2010,8 +1986,8 @@ 0 4 - 7 - 8 + 6 + 7 12 fill @@ -2039,8 +2015,8 @@ 0 1 - 6 - 7 + 5 + 6 fill @@ -2067,8 +2043,8 @@ 0 1 - 5 - 6 + 4 + 5 fill @@ -2095,8 +2071,8 @@ 0 1 - 14 - 15 + 13 + 14 fill @@ -2123,8 +2099,8 @@ 0 1 - 15 - 16 + 14 + 15 fill @@ -2152,8 +2128,8 @@ 0 1 - 16 - 17 + 15 + 16 12 fill @@ -2176,8 +2152,8 @@ 1 2 - 16 - 17 + 15 + 16 fill diff --git a/src/gnome/gnc-split-reg.c b/src/gnome/gnc-split-reg.c index f9279d8d51..fec9e63a3a 100644 --- a/src/gnome/gnc-split-reg.c +++ b/src/gnome/gnc-split-reg.c @@ -531,13 +531,12 @@ gsr_redraw_all_cb (GnucashRegister *g_reg, gpointer data) return; leader = gnc_ledger_display_leader( gsr->ledger ); - euro = gnc_gconf_get_bool(GCONF_GENERAL, KEY_ENABLE_EURO, NULL); commodity = xaccAccountGetCommodity( leader ); /* no EURO converson, if account is already EURO or no EURO currency */ if (commodity != NULL) - euro = (euro && gnc_is_euro_currency( commodity ) && + euro = (gnc_is_euro_currency( commodity ) && (strncasecmp(gnc_commodity_get_mnemonic(commodity), "EUR", 3))); else euro = FALSE; diff --git a/src/gnome/schemas/apps_gnucash_general.schemas.in b/src/gnome/schemas/apps_gnucash_general.schemas.in index 17cf0a1e8e..0dee8870c9 100644 --- a/src/gnome/schemas/apps_gnucash_general.schemas.in +++ b/src/gnome/schemas/apps_gnucash_general.schemas.in @@ -61,7 +61,7 @@ /apps/gnucash/general/enable_euro gnucash bool - TRUE + FALSE Enables Euro support Enables additional support for the European Union EURO currency.