mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-02 07:31:00 +00:00
Tidy up
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5534 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
56f71a1eec
commit
ba0cb39440
3 changed files with 183 additions and 177 deletions
|
@ -828,7 +828,7 @@ static SEL getSel = @selector(objectAtIndex:);
|
|||
}
|
||||
}
|
||||
|
||||
[self display];
|
||||
[self setNeedsDisplay: YES];
|
||||
}
|
||||
|
||||
- (void) selectCellAtRow: (int)row column: (int)column
|
||||
|
@ -1061,7 +1061,6 @@ static SEL getSel = @selector(objectAtIndex:);
|
|||
startIndex: selectx
|
||||
endIndex: selecty];
|
||||
}
|
||||
[self display];
|
||||
}
|
||||
|
||||
- (id) cellAtRow: (int)row
|
||||
|
@ -2329,7 +2328,8 @@ static SEL getSel = @selector(objectAtIndex:);
|
|||
if (nr <= 0) nr = 1;
|
||||
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;
|
||||
}
|
||||
change.height = change.height / nr;
|
||||
|
@ -2342,7 +2342,8 @@ static SEL getSel = @selector(objectAtIndex:);
|
|||
if (nc <= 0) nc = 1;
|
||||
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;
|
||||
}
|
||||
change.width = change.width / nc;
|
||||
|
@ -2633,6 +2634,7 @@ static SEL getSel = @selector(objectAtIndex:);
|
|||
}
|
||||
// Otherwise, make the big cycle.
|
||||
for (i = row + 1; i < numRows; i++)
|
||||
{
|
||||
for (j = 0; j < numCols; j++)
|
||||
{
|
||||
if ([cells[i][j] isSelectable])
|
||||
|
@ -2644,6 +2646,7 @@ static SEL getSel = @selector(objectAtIndex:);
|
|||
return YES;
|
||||
}
|
||||
}
|
||||
}
|
||||
return NO;
|
||||
}
|
||||
-(BOOL) _selectPreviousSelectableCellBeforeRow: (int)row
|
||||
|
@ -2667,6 +2670,7 @@ static SEL getSel = @selector(objectAtIndex:);
|
|||
}
|
||||
// Otherwise, make the big cycle.
|
||||
for (i = row - 1; i > -1; i--)
|
||||
{
|
||||
for (j = numCols - 1; j > -1; j--)
|
||||
{
|
||||
if ([cells[i][j] isSelectable])
|
||||
|
@ -2678,6 +2682,7 @@ static SEL getSel = @selector(objectAtIndex:);
|
|||
return YES;
|
||||
}
|
||||
}
|
||||
}
|
||||
return NO;
|
||||
}
|
||||
@end
|
||||
|
|
|
@ -2661,7 +2661,8 @@ resetCursorRectsForView(NSView *theView)
|
|||
|
||||
if (ourReturn)
|
||||
{
|
||||
ourReturn = [[_windowController document] shouldCloseWindowController: _windowController];
|
||||
ourReturn = [[_windowController document]
|
||||
shouldCloseWindowController: _windowController];
|
||||
}
|
||||
|
||||
return ourReturn;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue