* Source/NSMenuItemCell.m: Correct menu highlighting issue

found by applying changes suggested by Jeff Teunissen.   This
        change causes the menu to use the correct text color when
        highlighted.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23916 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2006-10-20 01:21:38 +00:00
parent 5f0ece8834
commit efcfc85f6b
2 changed files with 17 additions and 0 deletions

View file

@ -1,3 +1,10 @@
2006-10-19 21:17-EDT Gregory John Casamento <greg_casamento@yahoo.com>
* Source/NSMenuItemCell.m: Correct menu highlighting issue
found by applying changes suggested by Jeff Teunissen. This
change causes the menu to use the correct text color when
highlighted.
2006-10-19 Richard Frith-Macdonald <rfm@gnu.org>
* Headers/Additions/GNUstepGUI/GSTheme.h:

View file

@ -89,6 +89,16 @@ static NSImage *arrowImage = nil; /* Cache arrow image. */
return _cell.is_highlighted;
}
- (NSColor *)textColor
{
if(_cell.is_highlighted && [self isEnabled])
{
return [NSColor selectedMenuItemTextColor];
}
return [super textColor];
}
- (void) setMenuItem: (NSMenuItem *)item
{
ASSIGN (_menuItem, item);