mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
assorted bug fixes
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@736 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
69e9877c9a
commit
d1d574e8d9
@ -99,10 +99,13 @@ void destroyCombo (BasicCell *bcell)
|
||||
|
||||
box = (PopBox *) (cell->cell.gui_private);
|
||||
|
||||
if (box) {
|
||||
if (XtIsRealized(box->combobox)) {
|
||||
moveCombo (bcell, -1, -1);
|
||||
|
||||
XtDestroyWidget (box->combobox);
|
||||
}
|
||||
free (box);
|
||||
}
|
||||
|
||||
/* allow the widget to be created again */
|
||||
cell->cell.gui_private = NULL;
|
||||
|
@ -307,6 +307,7 @@ void xaccInitBasicRegister (BasicRegister *reg, int type)
|
||||
{
|
||||
Table * table;
|
||||
CellBlock *curs, *header;
|
||||
int phys_r, phys_c;
|
||||
|
||||
reg->user_hook = NULL;
|
||||
reg->destroy = NULL;
|
||||
@ -374,8 +375,13 @@ void xaccInitBasicRegister (BasicRegister *reg, int type)
|
||||
|
||||
/* -------------------------------- */
|
||||
table = xaccMallocTable ();
|
||||
xaccSetTableSize (table, header->numRows, header->numCols, 1, 1);
|
||||
phys_r = header->numRows + curs->numRows;
|
||||
phys_c = header->numCols;
|
||||
xaccSetTableSize (table, phys_r, phys_c, 2, 1);
|
||||
xaccSetCursor (table, header, 0, 0, 0, 0);
|
||||
xaccSetCursor (table, curs, header->numRows, 0, 1, 0);
|
||||
xaccMoveCursor (table, header->numRows, 0);
|
||||
|
||||
reg->table = table;
|
||||
}
|
||||
|
||||
|
@ -555,13 +555,10 @@ xaccCreateTable (Table *table, Widget parent, char * name)
|
||||
haveQuarks = True;
|
||||
}
|
||||
|
||||
/* if a header exists, get alignments, widths from there */
|
||||
/* The 0'th row of the handlers is defeined as the header */
|
||||
alignments = NULL;
|
||||
widths = NULL;
|
||||
curs = table->current_cursor;
|
||||
if (!curs) {
|
||||
curs = table->handlers[0][0];
|
||||
}
|
||||
alignments = curs->alignments;
|
||||
widths = curs->widths;
|
||||
num_header_rows = curs->numRows;
|
||||
|
Loading…
Reference in New Issue
Block a user