diff --git a/widget/src/gtk/nsMenu.cpp b/widget/src/gtk/nsMenu.cpp index 26072b297d06..ebb372d3efd1 100644 --- a/widget/src/gtk/nsMenu.cpp +++ b/widget/src/gtk/nsMenu.cpp @@ -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; } diff --git a/widget/src/gtk/nsMenuItem.cpp b/widget/src/gtk/nsMenuItem.cpp index 5facc9cbfd93..a8c105fd71d3 100644 --- a/widget/src/gtk/nsMenuItem.cpp +++ b/widget/src/gtk/nsMenuItem.cpp @@ -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; }