* Source/NSSecureTextFieldCell (-drawInteriorWithFrame:): Draw

disabled cell with controlBackgroundColor.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24289 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Matt Rice 2006-12-28 21:33:22 +00:00
parent d6fb03e8c5
commit 24f6989433
2 changed files with 10 additions and 1 deletions

View file

@ -4,6 +4,8 @@
cell background with controlBackgroundColor.
* Source/NSCell.m (-drawInteriorWithFrame:): Draw disabled cell text
with disabledControlTextColor.
* Source/NSSecureTextFieldCell (-drawInteriorWithFrame:): Draw
disabled cell with controlBackgroundColor.
2006-12-27 Richard Frith-Macdoanld <rfm@gnu.org>

View file

@ -117,7 +117,14 @@
/* Draw background, then ... */
if (_textfieldcell_draws_background)
{
[_background_color set];
if ([self isEnabled])
{
[_background_color set];
}
else
{
[[NSColor controlBackgroundColor] set];
}
NSRectFill ([self drawingRectForBounds: cellFrame]);
}
/* .. do nothing. */