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:
dpsimons 2010-08-30 23:02:21 +00:00
parent 26c6942f2d
commit ae51e23b36
3 changed files with 21 additions and 0 deletions

View file

@ -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];
}