mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
haha! fixed traversal, finally!
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@460 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
80b10f7865
commit
26c55c3207
@ -18,10 +18,14 @@
|
||||
* be traversed to will be the one indicated. Traversing
|
||||
* to the rright is usally performed with the tab key.
|
||||
* Special traversal order to the left, up or down are not
|
||||
* currently implemented. To traverse out of the table entirely,
|
||||
* currently implemented.
|
||||
*
|
||||
* To traverse out of the table entirely,
|
||||
* the next_row&col should be set to negative values. If
|
||||
* a traversal back into the table occurs, then the cell that
|
||||
* will be entered will be the one with the negative values.
|
||||
* will be entered will be the one with the negative values
|
||||
* minus one. Thus to traverse out of the table, then back
|
||||
* back to (m,n), set the next row-col to (-m-1,-n-1).
|
||||
*
|
||||
* MEMBERS:
|
||||
* The right_traverse array indicates which cell chould be
|
||||
|
@ -166,7 +166,7 @@ void xaccInitBasicRegister (BasicRegister *reg)
|
||||
xaccNextRight (curs, CRED_CELL_R, CRED_CELL_C, DEBT_CELL_R, DEBT_CELL_C);
|
||||
xaccNextRight (curs, DEBT_CELL_R, DEBT_CELL_C, ACTN_CELL_R, ACTN_CELL_C);
|
||||
xaccNextRight (curs, ACTN_CELL_R, ACTN_CELL_C, MEMO_CELL_R, MEMO_CELL_C);
|
||||
xaccNextRight (curs, MEMO_CELL_R, MEMO_CELL_C, -DATE_CELL_R, -DATE_CELL_C);
|
||||
xaccNextRight (curs, MEMO_CELL_R, MEMO_CELL_C, -1-DATE_CELL_R, -1-DATE_CELL_C);
|
||||
|
||||
|
||||
/* -------------------------------- */
|
||||
|
@ -638,13 +638,12 @@ traverseCB (Widget mw, XtPointer cd, XtPointer cb)
|
||||
*/
|
||||
if ((0 > next_row) || (0 > next_col)) {
|
||||
/* reverse the sign of next_row, col to be positive. */
|
||||
cbs->next_row = row - rel_row - next_row;
|
||||
cbs->next_column = col - rel_col - next_col;
|
||||
cbs->next_row = row - rel_row - next_row -1;
|
||||
cbs->next_column = col - rel_col - next_col -1;
|
||||
cbs->qparam = NULLQUARK;
|
||||
if (table->next_tab_group) {
|
||||
XmProcessTraversal (table->next_tab_group,
|
||||
XmTRAVERSE_CURRENT);
|
||||
|
||||
}
|
||||
} else {
|
||||
cbs->next_row = row - rel_row + next_row;
|
||||
|
Loading…
Reference in New Issue
Block a user