use controlColor to match cocoa behaviour

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29712 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Riccardo Mottola 2010-02-23 23:05:57 +00:00
parent 7c2b6e412b
commit a497bd0aa6
3 changed files with 9 additions and 5 deletions

View file

@ -1,3 +1,9 @@
2010-02-24 Riccardo Mottola <rmottola@users.sf.net>
* Source/NSBrowser.m,
* Source/NSMatrix.m: use controlColor for the background to match
Cocoa behaviour.
2010-02-22 Wolfgang Lux <wolfgang.lux@gmail.com>
* Source/NSButtonCell.m (-setImagePosition): Never call NSCell's

View file

@ -3076,10 +3076,8 @@ static NSTextFieldCell *titleCell;
[matrix setAutoscroll: YES];
// Set up background colors.
[matrix setBackgroundColor: [NSColor controlBackgroundColor]];
[matrix setBackgroundColor: [NSColor controlColor]];
[matrix setDrawsBackground: YES];
[matrix setCellBackgroundColor: [NSColor controlBackgroundColor]];
[matrix setDrawsCellBackground: YES];
if (!_allowsMultipleSelection)
{

View file

@ -311,9 +311,9 @@ static SEL getSel;
[self setFrame: frameRect];
_tabKeyTraversesCells = YES;
[self setBackgroundColor: [NSColor controlBackgroundColor]];
[self setBackgroundColor: [NSColor controlColor]];
[self setDrawsBackground: NO];
[self setCellBackgroundColor: [NSColor controlBackgroundColor]];
[self setCellBackgroundColor: [NSColor controlColor]];
[self setDrawsCellBackground: NO];
[self setSelectionByRect: YES];
_dottedRow = _dottedColumn = -1;