mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-25 14:10:53 +00:00
Do not draw state image for popup buttons ... in an efficient way
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12544 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
e277935bfc
commit
38e56f0ef9
1 changed files with 5 additions and 2 deletions
|
@ -185,6 +185,11 @@ static NSImage *_pbc_image[2];
|
|||
action: NULL
|
||||
keyEquivalent: @""
|
||||
atIndex: index];
|
||||
/* Disable showing the On/Off/Mixed state. We change the state of
|
||||
menu items when selected, according to the doc, but we don't want
|
||||
it to appear on the screen. */
|
||||
[anItem setOnStateImage: nil];
|
||||
[anItem setMixedStateImage: nil];
|
||||
}
|
||||
|
||||
- (void) removeItemWithTitle: (NSString *)title
|
||||
|
@ -271,7 +276,6 @@ static NSImage *_pbc_image[2];
|
|||
if (_pbcFlags.altersStateOfSelectedItem)
|
||||
{
|
||||
[_selectedItem setState: NSOffState];
|
||||
[_selectedItem setChangesState: NO];
|
||||
}
|
||||
[_selectedItem setImage: nil];
|
||||
}
|
||||
|
@ -283,7 +287,6 @@ static NSImage *_pbc_image[2];
|
|||
if (_pbcFlags.altersStateOfSelectedItem)
|
||||
{
|
||||
[_selectedItem setState: NSOnState];
|
||||
[_selectedItem setChangesState: NO];
|
||||
}
|
||||
[_selectedItem setImage: _pbc_image[_pbcFlags.pullsDown]];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue