mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 03:11:18 +00:00
Fix target/action setup for NSPopUpButtonCells
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@40459 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
4ad8c65b08
commit
05060dd539
1 changed files with 7 additions and 0 deletions
|
@ -27,6 +27,7 @@
|
|||
*/
|
||||
|
||||
#import "config.h"
|
||||
#import <Foundation/NSDebug.h>
|
||||
#import <Foundation/NSNotification.h>
|
||||
#import <Foundation/NSValue.h>
|
||||
#import "AppKit/NSApplication.h"
|
||||
|
@ -1289,6 +1290,12 @@ static NSImage *_pbc_image[5];
|
|||
{
|
||||
[menuItem setTarget: self];
|
||||
}
|
||||
else if ([[aDecoder class] coderVersion] > 0)
|
||||
{
|
||||
// Fix for XIB 5 parsing - unfortunately...
|
||||
[menuItem setAction: @selector(_popUpItemAction:)];
|
||||
[menuItem setTarget: self];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue