From 6be655d0b75719236bcfe21c725e452e4df2f236 Mon Sep 17 00:00:00 2001 From: Linas Vepstas Date: Mon, 14 Sep 1998 05:05:26 +0000 Subject: [PATCH] set upd max splits to show git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@1167 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/MultiLedger.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/MultiLedger.c b/src/MultiLedger.c index 7c46ecd79a..eb9e4f18e7 100644 --- a/src/MultiLedger.c +++ b/src/MultiLedger.c @@ -32,6 +32,11 @@ #include "Transaction.h" #include "util.h" +/* the MAX_QUERY_SPLITS define determines how many transactions should be shown + * in the register. Its set to a default of 30. But this should be converted + * into a user-configurable value. So hack-alert on the configuration aspect. + */ +#define MAX_QUERY_SPLITS 30 /** GLOBALS *********************************************************/ /* These are globals because they describe the state of the entire session. @@ -335,6 +340,9 @@ xaccLedgerDisplayGeneral (Account *lead_acc, Account **acclist, int ledger_type) xaccQuerySetAccounts (regData->query, regData->displayed_accounts); xaccQueryAddAccount (regData->query, regData->leader); + /* by default, display only thirty transactions */ + xaccQuerySetMaxSplits (regData->query, MAX_QUERY_SPLITS); + /* add this register to the list of registers */ fullList = ledgerListAdd (fullList, regData);