mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-01 20:51:55 +00:00
Fix menuItem and popUpButton drawing issues from merge
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@38852 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
ddf97e6fba
commit
e844e3909e
2 changed files with 8 additions and 1 deletions
|
@ -184,6 +184,11 @@ static NSString *commandKeyString = @"#";
|
|||
return color;
|
||||
}
|
||||
|
||||
- (NSInteger) state
|
||||
{
|
||||
return [_menuItem state];
|
||||
}
|
||||
|
||||
- (void) setMenuItem: (NSMenuItem *)item
|
||||
{
|
||||
ASSIGN(_menuItem, item);
|
||||
|
@ -759,6 +764,7 @@ static NSString *commandKeyString = @"#";
|
|||
|
||||
// Testplant-MAL-2015-06-22: While merging found was [_menuItem state] but
|
||||
// I think it should be using [self state] for popups to show properly...
|
||||
// Added 'state' method to NSMenuItemCell to return [_menuItem state] value...
|
||||
switch ([self state])
|
||||
{
|
||||
case NSOnState:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue