r14583 - gnucash/branches/2.0 - Replace the hbox separating debits from credits in the reconciliation

Derek Atkins warlord at cvs.gnucash.org
Sun Jul 30 15:42:05 EDT 2006


Author: warlord
Date: 2006-07-30 15:42:04 -0400 (Sun, 30 Jul 2006)
New Revision: 14583
Trac: http://svn.gnucash.org/trac/changeset/14583

Modified:
   gnucash/branches/2.0/
   gnucash/branches/2.0/ChangeLog
   gnucash/branches/2.0/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.

Merge from r14582.



Property changes on: gnucash/branches/2.0
___________________________________________________________________
Name: svk:merge
   - d2ab10a8-8a95-4986-baff-8d511d9f15b2:/local/gnucash/branches/2.0:12945
   + d2ab10a8-8a95-4986-baff-8d511d9f15b2:/local/gnucash/branches/2.0:12966

Modified: gnucash/branches/2.0/ChangeLog
===================================================================
--- gnucash/branches/2.0/ChangeLog	2006-07-30 16:28:38 UTC (rev 14582)
+++ gnucash/branches/2.0/ChangeLog	2006-07-30 19:42:04 UTC (rev 14583)
@@ -1,3 +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.
+
 2006-07-28  Christian Stimming <stimming at tuhh.de>
 
 	* accounts/de_DE/Makefile.am: Updated acctchrt_skr03.gnucash-xea

Modified: gnucash/branches/2.0/src/gnome/window-reconcile.c
===================================================================
--- gnucash/branches/2.0/src/gnome/window-reconcile.c	2006-07-30 16:28:38 UTC (rev 14582)
+++ gnucash/branches/2.0/src/gnome/window-reconcile.c	2006-07-30 19:42:04 UTC (rev 14583)
@@ -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