mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
* Source/NSPopUpButtonCell.m (-selectItem:): Mark the previously
selected item as needing display. This fixes the 'popup' indicators not being erased. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29502 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a80bd6c0d6
commit
b05ce5111e
2 changed files with 11 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
2010-02-07 Eric Wasylishen <ewasylishen@gmail.com>
|
||||
|
||||
* Source/NSPopUpButtonCell.m (-selectItem:): Mark the previously
|
||||
selected item as needing display. This fixes the 'popup' indicators
|
||||
not being erased.
|
||||
|
||||
2010-02-07 Riccardo Mottola <rmottola@users.sf.net>
|
||||
|
||||
* Source/NSToolbarItem.m (_isFlexibleSpace): use proper class check
|
||||
|
|
|
@ -616,6 +616,8 @@ static NSImage *_pbc_image[5];
|
|||
|
||||
- (void) selectItem: (id <NSMenuItem>)item
|
||||
{
|
||||
id<NSMenuItem> oldSelectedItem = _selectedItem;
|
||||
|
||||
if (_selectedItem == item)
|
||||
return;
|
||||
|
||||
|
@ -640,6 +642,9 @@ static NSImage *_pbc_image[5];
|
|||
/* Set the item in the menu */
|
||||
[[_menu menuRepresentation] setHighlightedItemIndex:
|
||||
[_menu indexOfItem: _selectedItem]];
|
||||
|
||||
[[_menu menuRepresentation] setNeedsDisplayForItemAtIndex:
|
||||
[_menu indexOfItem: oldSelectedItem]];
|
||||
}
|
||||
|
||||
- (void) selectItemAtIndex: (int)index
|
||||
|
|
Loading…
Reference in a new issue