зеркало из https://github.com/mozilla/pjs.git
oops, wrong patch. don't actually change any code just remove the comment.
This commit is contained in:
Родитель
a781c0e86b
Коммит
427ce629fa
|
@ -144,12 +144,13 @@ nsMenuX::Create(nsISupports * aParent, const nsAString &aLabel, const nsAString
|
||||||
|
|
||||||
SetEnabled(!mMenuContent->AttrValueIs(kNameSpaceID_None, nsWidgetAtoms::disabled,
|
SetEnabled(!mMenuContent->AttrValueIs(kNameSpaceID_None, nsWidgetAtoms::disabled,
|
||||||
nsWidgetAtoms::_true, eCaseMatters));
|
nsWidgetAtoms::_true, eCaseMatters));
|
||||||
[mNativeMenuItem setEnabled:(BOOL)mIsEnabled];
|
|
||||||
|
|
||||||
NSString *newCocoaLabelString = MenuHelpersX::CreateTruncatedCocoaLabel(mLabel);
|
NSString *newCocoaLabelString = MenuHelpersX::CreateTruncatedCocoaLabel(mLabel);
|
||||||
mNativeMenuItem = [[NSMenuItem alloc] initWithTitle:newCocoaLabelString action:nil keyEquivalent:@""];
|
mNativeMenuItem = [[NSMenuItem alloc] initWithTitle:newCocoaLabelString action:nil keyEquivalent:@""];
|
||||||
[newCocoaLabelString release];
|
[newCocoaLabelString release];
|
||||||
|
|
||||||
|
[mNativeMenuItem setEnabled:(BOOL)mIsEnabled];
|
||||||
|
|
||||||
// We call MenuConstruct here because keyboard commands are dependent upon
|
// We call MenuConstruct here because keyboard commands are dependent upon
|
||||||
// native menu items being created. If we only call MenuConstruct when a menu
|
// 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
|
// is actually selected, then we can't access keyboard commands until the
|
||||||
|
|
Загрузка…
Ссылка в новой задаче