mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 15:20:38 +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
7b3e14d77f
commit
fca5bf9954
2 changed files with 8 additions and 13 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue