From 0dd298e8981d1a22ce0dbfa97011f1dc6946c03e Mon Sep 17 00:00:00 2001 From: "joshmoz@gmail.com" Date: Mon, 17 Sep 2007 14:26:22 -0700 Subject: [PATCH] remove xxx comment, followup for 391288. r=cbarrett a=josh --- widget/src/cocoa/nsMenuX.mm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/widget/src/cocoa/nsMenuX.mm b/widget/src/cocoa/nsMenuX.mm index 4bd25d6217b9..3f4573557f86 100644 --- a/widget/src/cocoa/nsMenuX.mm +++ b/widget/src/cocoa/nsMenuX.mm @@ -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