mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
Set the background colour of the text object and make it draw its
background. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25091 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
01e550219a
commit
cc412d3a43
2 changed files with 8 additions and 13 deletions
|
@ -1,3 +1,8 @@
|
|||
2007-04-27 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/NSTableView.m (-editColumn::row:withEvent:select:): Set
|
||||
the background colour of the text object and make it draw its background.
|
||||
|
||||
2007-04-24 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/NSTableView.m (-noteNumberOfRowsChanged): Handle the case
|
||||
|
|
|
@ -3267,19 +3267,6 @@ byExtendingSelection: (BOOL)flag
|
|||
[_editedCell setEditable: _dataSource_editable];
|
||||
[_editedCell setObjectValue: [self _objectValueForTableColumn: tb
|
||||
row: rowIndex]];
|
||||
/* [_dataSource tableView: 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
|
||||
|
@ -3302,6 +3289,9 @@ byExtendingSelection: (BOOL)flag
|
|||
}
|
||||
|
||||
_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];
|
||||
if (flag)
|
||||
|
|
Loading…
Reference in a new issue