r17870 - gnucash/branches/2.2/src/gnome - [17820] Bug #339027: Reconcile window displays the date, too

Christian Stimming cstim at cvs.gnucash.org
Sat Jan 31 15:31:00 EST 2009


Author: cstim
Date: 2009-01-31 15:31:00 -0500 (Sat, 31 Jan 2009)
New Revision: 17870
Trac: http://svn.gnucash.org/trac/changeset/17870

Modified:
   gnucash/branches/2.2/src/gnome/window-reconcile.c
Log:
[17820] 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

Modified: gnucash/branches/2.2/src/gnome/window-reconcile.c
===================================================================
--- gnucash/branches/2.2/src/gnome/window-reconcile.c	2009-01-31 20:30:53 UTC (rev 17869)
+++ gnucash/branches/2.2/src/gnome/window-reconcile.c	2009-01-31 20:31:00 UTC (rev 17870)
@@ -74,6 +74,7 @@
 
   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 @@
   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)
@@ -1675,6 +1680,16 @@
       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);



More information about the gnucash-changes mailing list