mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-02 08:30:58 +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
|
@ -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>
|
2010-01-06 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
* TextConverters/RTF/RTFConsumer.m (RTFDConsumer-appendImage:):
|
* TextConverters/RTF/RTFConsumer.m (RTFDConsumer-appendImage:):
|
||||||
|
|
|
@ -1412,7 +1412,6 @@ Also returns the child index relative to this parent. */
|
||||||
[self _autoloadExpandedItems];
|
[self _autoloadExpandedItems];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
- (void) editColumn: (int) columnIndex
|
- (void) editColumn: (int) columnIndex
|
||||||
row: (int) rowIndex
|
row: (int) rowIndex
|
||||||
withEvent: (NSEvent *) theEvent
|
withEvent: (NSEvent *) theEvent
|
||||||
|
@ -1472,16 +1471,6 @@ Also returns the child index relative to this parent. */
|
||||||
[_editedCell setObjectValue: [self _objectValueForTableColumn: tb
|
[_editedCell setObjectValue: [self _objectValueForTableColumn: tb
|
||||||
row: rowIndex]];
|
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
|
// But of course the delegate can mess it up if it wants
|
||||||
[self _willDisplayCell: _editedCell
|
[self _willDisplayCell: _editedCell
|
||||||
forTableColumn: tb
|
forTableColumn: tb
|
||||||
|
@ -1503,6 +1492,9 @@ Also returns the child index relative to this parent. */
|
||||||
}
|
}
|
||||||
|
|
||||||
_textObject = [_editedCell setUpFieldEditorAttributes: t];
|
_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];
|
drawingRect = [self frameOfCellAtColumn: columnIndex row: rowIndex];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue