mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 15:58:39 +09:00
[Basilisk] Issue MoonchildProductions/UXP#1578 - Add global menubar support for GTK
This commit is contained in:
parent
8d5005090a
commit
be8bea50ff
3 changed files with 12 additions and 0 deletions
|
|
@ -5,7 +5,11 @@
|
|||
|
||||
<menubar id="main-menubar"
|
||||
onpopupshowing="if (event.target.parentNode.parentNode == this &&
|
||||
#ifdef MOZ_WIDGET_GTK
|
||||
document.documentElement.getAttribute('shellshowingmenubar') != 'true')
|
||||
#else
|
||||
!('@mozilla.org/widget/nativemenuservice;1' in Cc))
|
||||
#endif
|
||||
this.setAttribute('openedwithkey',
|
||||
event.target.parentNode.openedWithKey);"
|
||||
style="border:0px;padding:0px;margin:0px;-moz-appearance:none">
|
||||
|
|
|
|||
|
|
@ -4698,6 +4698,10 @@ function getTogglableToolbars() {
|
|||
let toolbarNodes = Array.slice(gNavToolbox.childNodes);
|
||||
toolbarNodes = toolbarNodes.concat(gNavToolbox.externalToolbars);
|
||||
toolbarNodes = toolbarNodes.filter(node => node.getAttribute("toolbarname"));
|
||||
#ifdef MOZ_WIDGET_GTK
|
||||
if (document.documentElement.getAttribute("shellshowingmenubar") == "true")
|
||||
toolbarNodes = toolbarNodes.filter(node => node.id != "toolbar-menubar");
|
||||
#endif
|
||||
return toolbarNodes;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -156,8 +156,12 @@
|
|||
#ifdef XP_MACOSX
|
||||
<toolbarbutton type="menu" class="tabbable"
|
||||
onpopupshowing="document.getElementById('placeContent').focus()"
|
||||
#else
|
||||
#ifdef MOZ_WIDGET_GTK
|
||||
<menubar id="placesMenu" _moz-menubarkeeplocal="true">
|
||||
#else
|
||||
<menubar id="placesMenu">
|
||||
#endif
|
||||
<menu accesskey="&organize.accesskey;" class="menu-iconic"
|
||||
#endif
|
||||
id="organizeButton" label="&organize.label;"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue