зеркало из https://github.com/mozilla/pjs.git
correctly name menu items that have submenus. cocoa widgets only. no bug.
This commit is contained in:
Родитель
7f49947bd3
Коммит
2a8e72031b
|
@ -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];
|
||||
|
|
Загрузка…
Ссылка в новой задаче