mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
fix the docs, add a utility
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@1050 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
56ccd5b95b
commit
f5c44451fb
@ -44,7 +44,12 @@ static xaccLedgerDisplay **fullList = NULL; /* all registers */
|
||||
|
||||
/********************************************************************\
|
||||
* Ledger utilities *
|
||||
* should replace with glib calls, as per g* style guides. *
|
||||
* Although these seem like they might be replacable with stock *
|
||||
* list handling calls, I want to leave them like this for now, *
|
||||
* since they manipulate global variables. If this code ever *
|
||||
* gets multi-threaded, access and edit of these globals will have *
|
||||
* to be controlled with mutexes, and these utility routines *
|
||||
* present a rather natural place for the locks to be placed. *
|
||||
\********************************************************************/
|
||||
|
||||
int
|
||||
@ -397,6 +402,28 @@ xaccLedgerDisplayRefresh (xaccLedgerDisplay *regData)
|
||||
|
||||
}
|
||||
|
||||
/********************************************************************\
|
||||
* refresh only the indicated register window *
|
||||
\********************************************************************/
|
||||
|
||||
void
|
||||
xaccRegisterRefresh (SplitRegister *splitreg)
|
||||
{
|
||||
xaccLedgerDisplay *regData;
|
||||
int n;
|
||||
|
||||
/* find the ledger which contains this register */
|
||||
n = 0; regData = fullList[n];
|
||||
while (regData) {
|
||||
if (splitreg == regData->ledger) {
|
||||
regData->dirty = 1;
|
||||
xaccLedgerDisplayRefresh (regData);
|
||||
return;
|
||||
}
|
||||
n++; regData = fullList[n];
|
||||
}
|
||||
}
|
||||
|
||||
/********************************************************************\
|
||||
* mark dirty *all* register windows which contain this account *
|
||||
\********************************************************************/
|
||||
|
@ -91,8 +91,11 @@ extern void xaccTransDisplayRefresh (Transaction *trans);
|
||||
|
||||
/*
|
||||
* redisplay/redraw only the indicated window.
|
||||
* both routines do same thing, they differ only by the argument they
|
||||
* take.
|
||||
*/
|
||||
extern void xaccLedgerDisplayRefresh (xaccLedgerDisplay *);
|
||||
extern void xaccRegisterRefresh (SplitRegister *);
|
||||
|
||||
/*
|
||||
* close the window
|
||||
|
Loading…
Reference in New Issue
Block a user