mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
Patch by Christopher Culver:
Define empty [sizeToFit] method to override NSControl implementation. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17747 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
b2caeb45dd
commit
e14bb3bc96
1 changed files with 8 additions and 2 deletions
|
@ -530,7 +530,7 @@ static NSTextFieldCell *titleCell;
|
|||
* specified path is already partially selected. If this is the
|
||||
* case, we can avoid redrawing those columns.
|
||||
*/
|
||||
for (i = 0; i <= _lastColumnLoaded && i < numberOfSubStrings; i++)
|
||||
for (i = 0; i <= _lastColumnLoaded && (unsigned)i < numberOfSubStrings; i++)
|
||||
{
|
||||
NSString *c = [[self selectedCellInColumn: i] stringValue];
|
||||
|
||||
|
@ -574,7 +574,7 @@ static NSTextFieldCell *titleCell;
|
|||
}
|
||||
else
|
||||
{
|
||||
unsigned numOfRows = [matrix numberOfRows];
|
||||
int numOfRows = [matrix numberOfRows];
|
||||
int row;
|
||||
|
||||
// find the cell in the browser matrix which is equal to aStr
|
||||
|
@ -1710,6 +1710,12 @@ static NSTextFieldCell *titleCell;
|
|||
}
|
||||
}
|
||||
|
||||
/** Override from NSControl. Don't do anything to change the size of the
|
||||
browser. */
|
||||
- (void) sizeToFit
|
||||
{
|
||||
}
|
||||
|
||||
/*
|
||||
* Setting the delegate
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue