AUDIT: r14582 - gnucash/trunk - Replace the hbox separating debits from credits in the reconciliation

Andreas Köhler andi5 at cvs.gnucash.org
Sun Jul 30 12:28:39 EDT 2006


Author: andi5
Date: 2006-07-30 12:28:38 -0400 (Sun, 30 Jul 2006)
New Revision: 14582
Trac: http://svn.gnucash.org/trac/changeset/14582

Modified:
   gnucash/trunk/ChangeLog
   gnucash/trunk/src/gnome/window-reconcile.c
Log:
Replace the hbox separating debits from credits in the reconciliation
window by a homogeneous table. This avoids nasty redraws when one of
them changes in size. Fixes #342512.
BP


Modified: gnucash/trunk/ChangeLog
===================================================================
--- gnucash/trunk/ChangeLog	2006-07-30 04:57:40 UTC (rev 14581)
+++ gnucash/trunk/ChangeLog	2006-07-30 16:28:38 UTC (rev 14582)
@@ -1,5 +1,10 @@
 2006-07-30  Andreas Köhler  <andi5.py at gmx.net>
 
+	* src/gnome/window-reconcile.c: Replace the hbox separating debits
+	  from credits in the reconciliation window by a homogeneous
+	  table. This avoids nasty redraws when one of them changes in
+	  size. Fixes #342512.
+
 	* src/gnome/schemas/apps_gnucash_warnings.schemas.in:
 	* src/gnome-utils/gnc-main-window.c: Add warning close_last_window
 	  and show it when user tries to close the last GnuCash window.

Modified: gnucash/trunk/src/gnome/window-reconcile.c
===================================================================
--- gnucash/trunk/src/gnome/window-reconcile.c	2006-07-30 04:57:40 UTC (rev 14581)
+++ gnucash/trunk/src/gnome/window-reconcile.c	2006-07-30 16:28:38 UTC (rev 14582)
@@ -1038,7 +1038,7 @@
   scrollWin = gtk_scrolled_window_new (NULL, NULL);
   gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW (scrollWin),
 				 GTK_POLICY_AUTOMATIC,
-				 GTK_POLICY_ALWAYS);
+				 GTK_POLICY_AUTOMATIC);
   gtk_container_set_border_width(GTK_CONTAINER(scrollWin), 5);
 
   gtk_container_add(GTK_CONTAINER(frame), scrollWin);
@@ -1607,7 +1607,7 @@
   {
     GtkWidget *frame = gtk_frame_new(NULL);
     GtkWidget *main_area = gtk_vbox_new(FALSE, 10);
-    GtkWidget *debcred_area = gtk_hbox_new(FALSE, 15);
+    GtkWidget *debcred_area = gtk_table_new(1, 2, TRUE);
     GtkWidget *debits_box;
     GtkWidget *credits_box;
 
@@ -1631,8 +1631,9 @@
     GNC_RECONCILE_LIST(recnData->credit)->sibling = GNC_RECONCILE_LIST(recnData->debit);
 
     gtk_box_pack_start(GTK_BOX(main_area), debcred_area, TRUE, TRUE, 0);
-    gtk_box_pack_start(GTK_BOX(debcred_area), debits_box, TRUE, TRUE, 0);
-    gtk_box_pack_end(GTK_BOX(debcred_area), credits_box, TRUE, TRUE, 0);
+    gtk_table_set_col_spacings(GTK_TABLE(debcred_area), 15);
+    gtk_table_attach_defaults(GTK_TABLE(debcred_area), debits_box, 0, 1, 0, 1);
+    gtk_table_attach_defaults(GTK_TABLE(debcred_area), credits_box, 1, 2, 0, 1);
 
     {
       GtkWidget *hbox, *title_vbox, *value_vbox;



More information about the gnucash-changes mailing list