Call gnc_{suspend|resume}_gui_refresh while closing accounts and scrubbing lots

to make them go much faster and avoid flicker.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18519 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Mike Alexander 2009-12-17 07:39:49 +00:00
parent 889f4d19ac
commit 10cead26b1
2 changed files with 4 additions and 0 deletions

View File

@ -302,8 +302,10 @@ gnc_book_close_response_cb(GtkDialog *dialog, gint response, GtkDialog *unused)
break;
}
gnc_suspend_gui_refresh();
close_accounts_of_type(cbw, income_acct, ACCT_TYPE_INCOME);
close_accounts_of_type(cbw, expense_acct, ACCT_TYPE_EXPENSE);
gnc_resume_gui_refresh();
/* FALLTHROUGH */
default:

View File

@ -579,7 +579,9 @@ lv_response_cb (GtkDialog *dialog, gint response, gpointer data)
break;
case RESPONSE_SCRUB_ACCOUNT:
gnc_suspend_gui_refresh ();
xaccAccountScrubLots (lv->account);
gnc_resume_gui_refresh ();
gnc_lot_viewer_fill (lv);
lv_show_splits (lv);
break;