mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-30 12:27:29 +09:00
Issue MoonchildProductions/UXP#1578 - Add global menubar support for GTK
This commit is contained in:
parent
cd1c94480d
commit
564f1026d5
32 changed files with 4811 additions and 4 deletions
|
|
@ -25,8 +25,14 @@
|
|||
</getter>
|
||||
</property>
|
||||
|
||||
<property name="state" readonly="true"
|
||||
onget="return this.popupBoxObject.popupState"/>
|
||||
<property name="state" readonly="true">
|
||||
<getter><![CDATA[
|
||||
if (this.hasAttribute('_moz-nativemenupopupstate'))
|
||||
return this.getAttribute('_moz-nativemenupopupstate');
|
||||
else
|
||||
return this.popupBoxObject.popupState;
|
||||
]]></getter>
|
||||
</property>
|
||||
|
||||
<property name="triggerNode" readonly="true"
|
||||
onget="return this.popupBoxObject.triggerNode"/>
|
||||
|
|
|
|||
|
|
@ -307,6 +307,15 @@ toolbar[type="menubar"][autohide="true"][inactive="true"]:not([customizing="true
|
|||
}
|
||||
%endif
|
||||
|
||||
%ifdef MOZ_WIDGET_GTK
|
||||
window[shellshowingmenubar="true"] menubar,
|
||||
window[shellshowingmenubar="true"]
|
||||
toolbar[type="menubar"]:not([customizing="true"]) {
|
||||
/* If a system-wide global menubar is in use, hide the XUL menubar. */
|
||||
display: none !important;
|
||||
}
|
||||
%endif
|
||||
|
||||
toolbarseparator {
|
||||
-moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbardecoration");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue