mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 20:40:47 +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
|
@ -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>
|
2007-04-24 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
* Source/NSTableView.m (-noteNumberOfRowsChanged): Handle the case
|
* Source/NSTableView.m (-noteNumberOfRowsChanged): Handle the case
|
||||||
|
|
|
@ -3267,19 +3267,6 @@ byExtendingSelection: (BOOL)flag
|
||||||
[_editedCell setEditable: _dataSource_editable];
|
[_editedCell setEditable: _dataSource_editable];
|
||||||
[_editedCell setObjectValue: [self _objectValueForTableColumn: tb
|
[_editedCell setObjectValue: [self _objectValueForTableColumn: tb
|
||||||
row: rowIndex]];
|
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
|
// But of course the delegate can mess it up if it wants
|
||||||
[self _willDisplayCell: _editedCell
|
[self _willDisplayCell: _editedCell
|
||||||
|
@ -3302,6 +3289,9 @@ byExtendingSelection: (BOOL)flag
|
||||||
}
|
}
|
||||||
|
|
||||||
_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];
|
||||||
if (flag)
|
if (flag)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue