From e23c2ebc2540bded868dd3a87383811340337af8 Mon Sep 17 00:00:00 2001 From: Christian Stimming Date: Wed, 14 Jan 2009 19:59:59 +0000 Subject: [PATCH] Bug #339027: Reconcile window displays the date, too This patch adds an additional label statement date to the box below the Credits section. Patch by C. Ernst BP git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17820 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/gnome/window-reconcile.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/gnome/window-reconcile.c b/src/gnome/window-reconcile.c index b735a61080..ba7026048a 100644 --- a/src/gnome/window-reconcile.c +++ b/src/gnome/window-reconcile.c @@ -74,6 +74,7 @@ struct _RecnWindow GtkWidget *starting; /* The starting balance */ GtkWidget *ending; /* The ending balance */ + GtkWidget *recn_date; /* The statement date */ GtkWidget *reconciled; /* The reconciled balance */ GtkWidget *difference; /* Text field, amount left to reconcile */ @@ -249,6 +250,10 @@ recnRecalculateBalance (RecnWindow *recnData) if (reverse_balance) starting = gnc_numeric_neg (starting); + /* update the statement date */ + amount = qof_print_date(recnData->statement_date); + gtk_label_set_text(GTK_LABEL(recnData->recn_date), amount); + /* update the ending balance */ ending = recnData->new_ending; if (reverse_balance) @@ -1712,6 +1717,16 @@ recnWindowWithBalance (GtkWidget *parent, Account *account, value_vbox = gtk_vbox_new(FALSE, 3); gtk_box_pack_start(GTK_BOX(totals_hbox), value_vbox, TRUE, TRUE, 0); + /* statement date title/value */ + title = gtk_label_new(_("Statement Date:")); + gtk_misc_set_alignment(GTK_MISC(title), 1.0, 0.5); + gtk_box_pack_start(GTK_BOX(title_vbox), title, FALSE, FALSE, 0); + + value = gtk_label_new(""); + recnData->recn_date = value; + gtk_misc_set_alignment(GTK_MISC(value), 1.0, 0.5); + gtk_box_pack_start(GTK_BOX(value_vbox), value, FALSE, FALSE, 0); + /* starting balance title/value */ title = gtk_label_new(_("Starting Balance:")); gtk_misc_set_alignment(GTK_MISC(title), 1.0, 0.5);