mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 01:48:05 +00:00
remove xxx comment, followup for 391288. r=cbarrett a=josh
This commit is contained in:
parent
b3bb455e7d
commit
0dd298e898
@ -113,7 +113,7 @@ nsMenuX::~nsMenuX()
|
||||
}
|
||||
|
||||
|
||||
NS_IMETHODIMP
|
||||
NS_IMETHODIMP
|
||||
nsMenuX::Create(nsISupports * aParent, const nsAString &aLabel, const nsAString &aAccessKey,
|
||||
nsIChangeManager* aManager, nsIContent* aNode)
|
||||
{
|
||||
@ -142,16 +142,14 @@ nsMenuX::Create(nsISupports * aParent, const nsAString &aLabel, const nsAString
|
||||
if (menubar && mMenuContent->GetChildCount() == 0)
|
||||
mVisible = PR_FALSE;
|
||||
|
||||
// XXXjag simply use mIsEnabled?
|
||||
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…
Reference in New Issue
Block a user