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


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14582 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Andreas Köhler 2006-07-30 16:28:38 +00:00
parent fd7877718f
commit fc8737d6b3
2 changed files with 10 additions and 4 deletions

View File

@ -1,5 +1,10 @@
2006-07-30 Andreas Köhler <andi5.py@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.

View File

@ -1038,7 +1038,7 @@ gnc_reconcile_window_create_list_box(Account *account,
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 @@ recnWindowWithBalance (GtkWidget *parent, Account *account,
{
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 @@ recnWindowWithBalance (GtkWidget *parent, Account *account,
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;