[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:
Fred Kiefer 2001-10-08 08:19:50 +00:00
parent 42988fcc62
commit 8f884a5434

View file

@ -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