mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 18:11:06 +00:00
* Source/NSTableView.m (-noteNumberOfRowsChanged:): Post selection
is and did change notifications if changing the selected rows. * Source/NSSliderCell.m (-copyWithZone:): Make a little clearer. * Source/NSMatrix.m (-_rebuildLayoutAfterResize): Don't change the intercell spacing if not autosizing cells. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24080 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
586f972d12
commit
4475b975b8
4 changed files with 13 additions and 34 deletions
|
@ -1,3 +1,11 @@
|
|||
2006-11-12 Matt Rice <ratmice@gmail.com>
|
||||
|
||||
* Source/NSTableView.m (-noteNumberOfRowsChanged:): Post selection
|
||||
is and did change notifications if changing the selected rows.
|
||||
* Source/NSSliderCell.m (-copyWithZone:): Make a little clearer.
|
||||
* Source/NSMatrix.m (-_rebuildLayoutAfterResize): Don't change the
|
||||
intercell spacing if not autosizing cells.
|
||||
|
||||
2006-11-11 Matt Rice <ratmice@gmail.com>
|
||||
|
||||
* Source/NSSliderCell.m: Implement copyWithZone:.
|
||||
|
|
|
@ -3337,37 +3337,6 @@ static SEL getSel;
|
|||
_cellSize.width = _bounds.size.width;
|
||||
}
|
||||
}
|
||||
else // !autosizesCells
|
||||
{
|
||||
/* Keep the cell size as it is, and adjust the intercell to fit. */
|
||||
if (_numRows > 1)
|
||||
{
|
||||
_intercell.height = _bounds.size.height - (_numRows * _cellSize.height);
|
||||
_intercell.height = _intercell.height / (_numRows - 1);
|
||||
if (_intercell.height < 0)
|
||||
{
|
||||
_intercell.height = 0;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
_intercell.height = 0;
|
||||
}
|
||||
|
||||
if (_numCols > 1)
|
||||
{
|
||||
_intercell.width = _bounds.size.width - (_numCols * _cellSize.width);
|
||||
_intercell.width = _intercell.width / (_numCols - 1);
|
||||
if (_intercell.width < 0)
|
||||
{
|
||||
_intercell.width = 0;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
_intercell.width = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
- (void) setFrame: (NSRect)aFrame
|
||||
|
|
|
@ -157,9 +157,9 @@ float _floatValueForMousePoint (NSPoint point, NSRect knobRect,
|
|||
{
|
||||
NSSliderCell *cpy = [super copyWithZone:zone];
|
||||
|
||||
/* since NSCells -copyWithZone calls NSCopyObject */
|
||||
RETAIN(_titleCell);
|
||||
RETAIN(_knobCell);
|
||||
/* since NSCells call to NSCopyObject only copies object addresses */
|
||||
RETAIN(cpy->_titleCell);
|
||||
RETAIN(cpy->_knobCell);
|
||||
return cpy;
|
||||
}
|
||||
|
||||
|
|
|
@ -4731,6 +4731,7 @@ static BOOL selectContiguousRegion(NSTableView *self,
|
|||
if (_selectedRow >= _numberOfRows)
|
||||
{
|
||||
row = [_selectedRows lastIndex];
|
||||
[self _postSelectionIsChangingNotification];
|
||||
|
||||
if (row != NSNotFound)
|
||||
{
|
||||
|
@ -4761,6 +4762,7 @@ static BOOL selectContiguousRegion(NSTableView *self,
|
|||
}
|
||||
}
|
||||
}
|
||||
[self _postSelectionDidChangeNotification];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue