mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 21:10:38 +00:00
fix problem of pulldown action not being called for correct cell, and being called twice on Windows
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31213 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
26c6942f2d
commit
ae51e23b36
3 changed files with 21 additions and 0 deletions
|
@ -1304,6 +1304,10 @@ static NSImage *_pbc_image[5];
|
|||
*/
|
||||
- (void) _popUpItemAction: (id)sender
|
||||
{
|
||||
// first, if sender is one of our items, set it as our selected item
|
||||
int index = [_menu indexOfItem:sender];
|
||||
if (index != NSNotFound)
|
||||
[self selectItemAtIndex:index];
|
||||
[NSApp sendAction: [self action] to: [self target] from: self];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue