mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 15:20:38 +00:00
Fixed broken cell editability in outline views by replicating NSTableView
changes r25091. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29264 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
7efba8c5a4
commit
a825d81220
2 changed files with 8 additions and 11 deletions
|
@ -1412,7 +1412,6 @@ Also returns the child index relative to this parent. */
|
|||
[self _autoloadExpandedItems];
|
||||
}
|
||||
|
||||
|
||||
- (void) editColumn: (int) columnIndex
|
||||
row: (int) rowIndex
|
||||
withEvent: (NSEvent *) theEvent
|
||||
|
@ -1472,16 +1471,6 @@ Also returns the child index relative to this parent. */
|
|||
[_editedCell setObjectValue: [self _objectValueForTableColumn: tb
|
||||
row: rowIndex]];
|
||||
|
||||
// We really want the correct background color!
|
||||
if ([_editedCell respondsToSelector: @selector(setBackgroundColor:)])
|
||||
{
|
||||
[(NSTextFieldCell *)_editedCell setBackgroundColor: _backgroundColor];
|
||||
}
|
||||
else
|
||||
{
|
||||
[t setBackgroundColor: _backgroundColor];
|
||||
}
|
||||
|
||||
// But of course the delegate can mess it up if it wants
|
||||
[self _willDisplayCell: _editedCell
|
||||
forTableColumn: tb
|
||||
|
@ -1503,6 +1492,9 @@ Also returns the child index relative to this parent. */
|
|||
}
|
||||
|
||||
_textObject = [_editedCell setUpFieldEditorAttributes: t];
|
||||
// FIXME: Which background color do we want here?
|
||||
[_textObject setBackgroundColor: [NSColor selectedControlColor]];
|
||||
[_textObject setDrawsBackground: YES];
|
||||
|
||||
drawingRect = [self frameOfCellAtColumn: columnIndex row: rowIndex];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue