mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-01 00:00:48 +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
a09deaeee7
commit
fd4725c834
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
|
* specified path is already partially selected. If this is the
|
||||||
* case, we can avoid redrawing those columns.
|
* 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];
|
NSString *c = [[self selectedCellInColumn: i] stringValue];
|
||||||
|
|
||||||
|
@ -574,7 +574,7 @@ static NSTextFieldCell *titleCell;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
unsigned numOfRows = [matrix numberOfRows];
|
int numOfRows = [matrix numberOfRows];
|
||||||
int row;
|
int row;
|
||||||
|
|
||||||
// find the cell in the browser matrix which is equal to aStr
|
// 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
|
* Setting the delegate
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue