mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Fix 'show all transactions' preference button.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@2422 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
bbcdfa4a5d
commit
65fe217095
@ -1,5 +1,9 @@
|
||||
2000-06-05 Dave Peticolas <dave@krondo.com>
|
||||
|
||||
* src/gnome/window-register.c (gnc_register_date_window): if 'show
|
||||
all transactions' is not set in the preferences, limit it to
|
||||
30. Temporary fix for 1.4, this should be configurable.
|
||||
|
||||
* configure.in: changed '! test' to 'test !'.
|
||||
|
||||
* src/engine: removed *Consolidate* functions. These were cruft
|
||||
|
@ -512,28 +512,28 @@ gnc_register_set_date_range(RegWindow *regData)
|
||||
|
||||
if (!gtk_toggle_button_get_active(toggle)) {
|
||||
time_t start;
|
||||
|
||||
|
||||
start = gnc_date_edit_get_date(GNC_DATE_EDIT(regDateData->start_date));
|
||||
start = gnc_register_min_day_time(start);
|
||||
|
||||
|
||||
xaccQueryAddDateMatchTT(regData->ledger->query,
|
||||
start, LONG_MAX,
|
||||
QUERY_AND);
|
||||
}
|
||||
|
||||
|
||||
toggle = GTK_TOGGLE_BUTTON(regDateData->show_latest);
|
||||
if (!gtk_toggle_button_get_active(toggle)) {
|
||||
time_t end;
|
||||
|
||||
|
||||
end = gnc_date_edit_get_date(GNC_DATE_EDIT(regDateData->end_date));
|
||||
end = gnc_register_max_day_time(end);
|
||||
|
||||
|
||||
xaccQueryAddDateMatchTT(regData->ledger->query,
|
||||
LONG_MIN,
|
||||
end,
|
||||
QUERY_AND);
|
||||
}
|
||||
|
||||
|
||||
gnc_date_range_set_sensitivities(regData);
|
||||
}
|
||||
|
||||
@ -666,6 +666,16 @@ gnc_register_date_window(RegWindow *regData)
|
||||
"Show All Transactions",
|
||||
TRUE);
|
||||
|
||||
/* This is a bit of a hack. The number of splits should be
|
||||
* configurable, or maybe we should go back a time range instead
|
||||
* of picking a number, or maybe we should be able to exclude
|
||||
* based on reconciled status. Anyway, this works for now. */
|
||||
if (!show_all)
|
||||
{
|
||||
xaccQuerySetMaxSplits(regData->ledger->query, 30);
|
||||
xaccQueryGetSplits(regData->ledger->query);
|
||||
}
|
||||
|
||||
vbox = gtk_vbox_new(FALSE, 2);
|
||||
gtk_container_set_border_width(GTK_CONTAINER(vbox), 5);
|
||||
gtk_container_add(GTK_CONTAINER(frame), vbox);
|
||||
|
Loading…
Reference in New Issue
Block a user