зеркало из 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
|
// We have to add a menu item and then associate the menu with it
|
||||||
nsAutoString label;
|
nsAutoString label;
|
||||||
aMenu->GetLabel(label);
|
aMenu->GetLabel(label);
|
||||||
NSString *newCocoaLabelString = MenuHelpersX::CreateTruncatedCocoaLabel(mLabel);
|
NSString *newCocoaLabelString = MenuHelpersX::CreateTruncatedCocoaLabel(label);
|
||||||
NSMenuItem* newNativeMenuItem= [[NSMenuItem alloc] initWithTitle:newCocoaLabelString action:NULL keyEquivalent:@""];
|
NSMenuItem* newNativeMenuItem= [[NSMenuItem alloc] initWithTitle:newCocoaLabelString action:NULL keyEquivalent:@""];
|
||||||
[mMacMenu addItem:newNativeMenuItem];
|
[mMacMenu addItem:newNativeMenuItem];
|
||||||
[newCocoaLabelString release];
|
[newCocoaLabelString release];
|
||||||
|
|
Загрузка…
Ссылка в новой задаче