oops, wrong patch. don't actually change any code just remove the comment.
git-svn-id: svn://10.0.0.236/trunk@236156 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
8ab29047a6
commit
81d30162e0
@ -144,12 +144,13 @@ nsMenuX::Create(nsISupports * aParent, const nsAString &aLabel, const nsAString
|
||||
|
||||
SetEnabled(!mMenuContent->AttrValueIs(kNameSpaceID_None, nsWidgetAtoms::disabled,
|
||||
nsWidgetAtoms::_true, eCaseMatters));
|
||||
[mNativeMenuItem setEnabled:(BOOL)mIsEnabled];
|
||||
|
||||
NSString *newCocoaLabelString = MenuHelpersX::CreateTruncatedCocoaLabel(mLabel);
|
||||
mNativeMenuItem = [[NSMenuItem alloc] initWithTitle:newCocoaLabelString action:nil keyEquivalent:@""];
|
||||
[newCocoaLabelString release];
|
||||
|
||||
[mNativeMenuItem setEnabled:(BOOL)mIsEnabled];
|
||||
|
||||
// We call MenuConstruct here because keyboard commands are dependent upon
|
||||
// native menu items being created. If we only call MenuConstruct when a menu
|
||||
// is actually selected, then we can't access keyboard commands until the
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user