correctly name menu items that have submenus. cocoa widgets only. no bug.

This commit is contained in:
joshmoz%gmail.com 2005-12-22 20:20:23 +00:00
Родитель 7f49947bd3
Коммит 2a8e72031b
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

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