From 7b826467c88cc0ef4641772aa82ae2507c2a684b Mon Sep 17 00:00:00 2001 From: Derek Atkins Date: Sun, 16 Feb 2003 21:51:22 +0000 Subject: [PATCH] 2003-02-16 Herbert Thoma * src/gnome/gnc-split-reg.c: only display an euro amount in the status bar of a register window if the account currency is a euro currency but NOT euro itself * src/gnome-utils/gnc-account-tree.c: auto resize balance and total columns git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7996 57a11ea4-9604-0410-9ed3-97b8803252fd --- ChangeLog | 9 +++++++++ src/gnome-utils/gnc-account-tree.c | 8 ++++++++ src/gnome/gnc-split-reg.c | 3 ++- 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 47fce2a815..fa6981f257 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2003-02-16 Herbert Thoma + + * src/gnome/gnc-split-reg.c: + only display an euro amount in the status bar of a register window + if the account currency is a euro currency but NOT euro itself + + * src/gnome-utils/gnc-account-tree.c: + auto resize balance and total columns + 2003-02-15 Derek Atkins * src/import-export/qif-import/qif-file.scm: diff --git a/src/gnome-utils/gnc-account-tree.c b/src/gnome-utils/gnc-account-tree.c index 5c0fa5afd3..4f3b2001ce 100644 --- a/src/gnome-utils/gnc-account-tree.c +++ b/src/gnome-utils/gnc-account-tree.c @@ -189,6 +189,14 @@ gnc_account_tree_init (GNCAccountTree *tree) gtk_clist_set_column_auto_resize(GTK_CLIST(tree), 0, TRUE); gtk_clist_set_column_auto_resize(GTK_CLIST(tree), tree->description_column, TRUE ); + gtk_clist_set_column_auto_resize(GTK_CLIST(tree), + tree->balance_column, TRUE ); + gtk_clist_set_column_auto_resize(GTK_CLIST(tree), + tree->balance_column + 1, TRUE ); + gtk_clist_set_column_auto_resize(GTK_CLIST(tree), + tree->total_column, TRUE ); + gtk_clist_set_column_auto_resize(GTK_CLIST(tree), + tree->total_column + 1, TRUE ); gtk_clist_set_column_justification(GTK_CLIST(tree), tree->balance_column, diff --git a/src/gnome/gnc-split-reg.c b/src/gnome/gnc-split-reg.c index a22bcf59f0..f1ade9fbc7 100644 --- a/src/gnome/gnc-split-reg.c +++ b/src/gnome/gnc-split-reg.c @@ -671,7 +671,8 @@ gsr_redraw_all_cb (GnucashRegister *g_reg, gpointer data) /* no EURO converson, if account is already EURO or no EURO currency */ if (commodity != NULL) - euro = (euro && gnc_is_euro_currency( commodity )); + euro = (euro && gnc_is_euro_currency( commodity ) && + (strncasecmp(gnc_commodity_get_mnemonic(commodity), "EUR", 3))); else euro = FALSE;