remove xxx comment, followup for 391288. r=cbarrett a=josh

This commit is contained in:
joshmoz@gmail.com 2007-09-17 14:26:22 -07:00
Родитель b3bb455e7d
Коммит 0dd298e898
1 изменённых файлов: 2 добавлений и 4 удалений

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

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