mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 20:50:44 +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
4195bb1f3d
commit
bc821253e3
2 changed files with 8 additions and 11 deletions
|
@ -1,3 +1,8 @@
|
|||
2010-01-11 Quentin Mathe <quentin.mathe@gmail.com>
|
||||
|
||||
* Source/NSOutlineView.m (-editColumn:row:withEvent:select:): Fixed broken
|
||||
cell editability by replicating NSTableView changes r25091.
|
||||
|
||||
2010-01-06 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* TextConverters/RTF/RTFConsumer.m (RTFDConsumer-appendImage:):
|
||||
|
|
|
@ -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…
Reference in a new issue