git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5534 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
richard 1999-12-16 04:53:50 +00:00
parent 56f71a1eec
commit ba0cb39440
3 changed files with 183 additions and 177 deletions

View file

@ -828,7 +828,7 @@ static SEL getSel = @selector(objectAtIndex:);
} }
} }
[self display]; [self setNeedsDisplay: YES];
} }
- (void) selectCellAtRow: (int)row column: (int)column - (void) selectCellAtRow: (int)row column: (int)column
@ -1061,7 +1061,6 @@ static SEL getSel = @selector(objectAtIndex:);
startIndex: selectx startIndex: selectx
endIndex: selecty]; endIndex: selecty];
} }
[self display];
} }
- (id) cellAtRow: (int)row - (id) cellAtRow: (int)row
@ -2329,7 +2328,8 @@ static SEL getSel = @selector(objectAtIndex:);
if (nr <= 0) nr = 1; if (nr <= 0) nr = 1;
if (cellSize.height == 0) if (cellSize.height == 0)
{ {
cellSize.height = oldBoundsSize.height - ((nr - 1) * intercell.height); cellSize.height = oldBoundsSize.height
- ((nr - 1) * intercell.height);
cellSize.height = cellSize.height / nr; cellSize.height = cellSize.height / nr;
} }
change.height = change.height / nr; change.height = change.height / nr;
@ -2342,7 +2342,8 @@ static SEL getSel = @selector(objectAtIndex:);
if (nc <= 0) nc = 1; if (nc <= 0) nc = 1;
if (cellSize.width == 0) if (cellSize.width == 0)
{ {
cellSize.width = oldBoundsSize.width - ((nc - 1) * intercell.width); cellSize.width = oldBoundsSize.width
- ((nc - 1) * intercell.width);
cellSize.width = cellSize.width / nc; cellSize.width = cellSize.width / nc;
} }
change.width = change.width / nc; change.width = change.width / nc;
@ -2633,6 +2634,7 @@ static SEL getSel = @selector(objectAtIndex:);
} }
// Otherwise, make the big cycle. // Otherwise, make the big cycle.
for (i = row + 1; i < numRows; i++) for (i = row + 1; i < numRows; i++)
{
for (j = 0; j < numCols; j++) for (j = 0; j < numCols; j++)
{ {
if ([cells[i][j] isSelectable]) if ([cells[i][j] isSelectable])
@ -2644,6 +2646,7 @@ static SEL getSel = @selector(objectAtIndex:);
return YES; return YES;
} }
} }
}
return NO; return NO;
} }
-(BOOL) _selectPreviousSelectableCellBeforeRow: (int)row -(BOOL) _selectPreviousSelectableCellBeforeRow: (int)row
@ -2667,6 +2670,7 @@ static SEL getSel = @selector(objectAtIndex:);
} }
// Otherwise, make the big cycle. // Otherwise, make the big cycle.
for (i = row - 1; i > -1; i--) for (i = row - 1; i > -1; i--)
{
for (j = numCols - 1; j > -1; j--) for (j = numCols - 1; j > -1; j--)
{ {
if ([cells[i][j] isSelectable]) if ([cells[i][j] isSelectable])
@ -2678,6 +2682,7 @@ static SEL getSel = @selector(objectAtIndex:);
return YES; return YES;
} }
} }
}
return NO; return NO;
} }
@end @end

View file

@ -2661,7 +2661,8 @@ resetCursorRectsForView(NSView *theView)
if (ourReturn) if (ourReturn)
{ {
ourReturn = [[_windowController document] shouldCloseWindowController: _windowController]; ourReturn = [[_windowController document]
shouldCloseWindowController: _windowController];
} }
return ourReturn; return ourReturn;