mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 04:20:38 +00:00
[insertItemWithTitle:atIndex:] don't set the action and target for
the item, so it will use the action from the popup button. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11110 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
42988fcc62
commit
8f884a5434
1 changed files with 1 additions and 2 deletions
|
@ -183,10 +183,9 @@ static NSImage *_pbc_image[2];
|
|||
index = count;
|
||||
|
||||
anItem = [_menu insertItemWithTitle: title
|
||||
action: [self action]
|
||||
action: NULL
|
||||
keyEquivalent: @""
|
||||
atIndex: index];
|
||||
[anItem setTarget: [self target]];
|
||||
}
|
||||
|
||||
- (void) removeItemWithTitle: (NSString *)title
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue