mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-10 17:24:29 +00:00
correctly name menu items that have submenus. cocoa widgets only. no bug.
This commit is contained in:
parent
c1d76055da
commit
f4bc8b5fec
@ -261,7 +261,7 @@ NS_IMETHODIMP nsMenuX::AddMenu(nsIMenu * aMenu)
|
||||
// We have to add a menu item and then associate the menu with it
|
||||
nsAutoString label;
|
||||
aMenu->GetLabel(label);
|
||||
NSString *newCocoaLabelString = MenuHelpersX::CreateTruncatedCocoaLabel(mLabel);
|
||||
NSString *newCocoaLabelString = MenuHelpersX::CreateTruncatedCocoaLabel(label);
|
||||
NSMenuItem* newNativeMenuItem= [[NSMenuItem alloc] initWithTitle:newCocoaLabelString action:NULL keyEquivalent:@""];
|
||||
[mMacMenu addItem:newNativeMenuItem];
|
||||
[newCocoaLabelString release];
|
||||
|
Loading…
x
Reference in New Issue
Block a user