[Pale-Moon] Issue MoonchildProductions/UXP#1578 - Add global menubar support for GTK

This commit is contained in:
Lootyhoof 2020-06-09 20:01:57 +01:00 • committed by Roy Tam
commit 9f5067486b
4 changed files with 18 additions and 0 deletions

View file

@ -4600,6 +4600,12 @@ function onViewToolbarsPopupShowing(aEvent, aInsertPoint) {
toolbarNodes.push(document.getElementById("addon-bar"));
for (let toolbar of toolbarNodes) {
#ifdef MOZ_WIDGET_GTK
if (toolbar.id == "toolbar-menubar" &&
document.documentElement.getAttribute("shellshowingmenubar") == "true") {
continue;
}
#endif
let toolbarName = toolbar.getAttribute("toolbarname");
if (toolbarName) {
let menuItem = document.createElement("menuitem");