зеркало из https://github.com/mozilla/gecko-dev.git
Create() doesn't need to add the menu items anymore
This commit is contained in:
Родитель
1cf0713ecb
Коммит
6715f847ef
|
@ -96,7 +96,7 @@ NS_METHOD nsMenu::Create(nsIMenuBar *aParent, const nsString &aLabel)
|
|||
|
||||
mLabel = aLabel;
|
||||
mMenu = gtk_menu_new();
|
||||
aParent->AddMenu(this);
|
||||
//aParent->AddMenu(this);
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
@ -110,7 +110,7 @@ NS_METHOD nsMenu::Create(nsIMenu *aParent, const nsString &aLabel)
|
|||
|
||||
mLabel = aLabel;
|
||||
mMenu = gtk_menu_new();
|
||||
aParent->AddMenu(this);
|
||||
// aParent->AddMenu(this);
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
|
@ -166,7 +166,7 @@ NS_METHOD nsMenuItem::Create(nsIMenu *aParent,
|
|||
}
|
||||
|
||||
Create(widget, GetNativeParent(), aLabel, aCommand);
|
||||
aParent->AddMenuItem(this);
|
||||
// aParent->AddMenuItem(this);
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
@ -185,7 +185,7 @@ NS_METHOD nsMenuItem::Create(nsIPopUpMenu *aParent,
|
|||
}
|
||||
|
||||
Create(widget, GetNativeParent(), aLabel, aCommand);
|
||||
aParent->AddItem(this);
|
||||
// aParent->AddItem(this);
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче