mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 345257 - add tooltip to 'all tabs' menu button. patch from Michael Ventnor <ventnors_dogs234@yahoo.com.au>, r=me.
This commit is contained in:
parent
c2af5ae4af
commit
9ff84bd739
@ -2452,7 +2452,8 @@
|
|||||||
</xul:arrowscrollbox>
|
</xul:arrowscrollbox>
|
||||||
<xul:hbox class="tabs-alltabs-box" align="center" pack="end"
|
<xul:hbox class="tabs-alltabs-box" align="center" pack="end"
|
||||||
anonid="alltabs-box">
|
anonid="alltabs-box">
|
||||||
<xul:toolbarbutton class="tabs-alltabs-button" type="menu">
|
<xul:toolbarbutton class="tabs-alltabs-button" type="menu" tooltip="_child">
|
||||||
|
<xul:tooltip anonid="alltabs-tooltip" label="&listAllTabs.label;"/>
|
||||||
<xul:menupopup class="tabs-alltabs-popup"
|
<xul:menupopup class="tabs-alltabs-popup"
|
||||||
anonid="alltabs-popup"
|
anonid="alltabs-popup"
|
||||||
position="after_end"/>
|
position="after_end"/>
|
||||||
@ -2648,6 +2649,11 @@
|
|||||||
document.getAnonymousElementByAttribute(this,
|
document.getAnonymousElementByAttribute(this,
|
||||||
"anonid", "alltabs-box");
|
"anonid", "alltabs-box");
|
||||||
</field>
|
</field>
|
||||||
|
|
||||||
|
<field name="mAllTabsTooltip">
|
||||||
|
document.getAnonymousElementByAttribute(this,
|
||||||
|
"anonid", "alltabs-tooltip");
|
||||||
|
</field>
|
||||||
|
|
||||||
<field name="mFlashTimer">null</field>
|
<field name="mFlashTimer">null</field>
|
||||||
<field name="mFlashStage">0</field>
|
<field name="mFlashStage">0</field>
|
||||||
@ -2705,6 +2711,11 @@
|
|||||||
</implementation>
|
</implementation>
|
||||||
<handlers>
|
<handlers>
|
||||||
<handler event="TabSelect" action="this._handleTabSelect();"/>
|
<handler event="TabSelect" action="this._handleTabSelect();"/>
|
||||||
|
<handler event="popupshowing"><![CDATA[
|
||||||
|
if (event.originalTarget == this.mAllTabsTooltip &&
|
||||||
|
document.tooltipNode.parentNode == this.mAllTabsPopup)
|
||||||
|
event.preventDefault();
|
||||||
|
]]></handler>
|
||||||
</handlers>
|
</handlers>
|
||||||
</binding>
|
</binding>
|
||||||
|
|
||||||
|
@ -10,3 +10,4 @@
|
|||||||
<!ENTITY reloadTab.label "Reload Tab">
|
<!ENTITY reloadTab.label "Reload Tab">
|
||||||
<!ENTITY reloadTab.accesskey "r">
|
<!ENTITY reloadTab.accesskey "r">
|
||||||
<!ENTITY newTabButton.tooltip "Open a new tab">
|
<!ENTITY newTabButton.tooltip "Open a new tab">
|
||||||
|
<!ENTITY listAllTabs.label "List all tabs">
|
||||||
|
@ -64,7 +64,8 @@
|
|||||||
</xul:arrowscrollbox>
|
</xul:arrowscrollbox>
|
||||||
<xul:hbox class="tabs-alltabs-box" pack="end" align="center"
|
<xul:hbox class="tabs-alltabs-box" pack="end" align="center"
|
||||||
anonid="alltabs-box">
|
anonid="alltabs-box">
|
||||||
<xul:toolbarbutton class="tabs-alltabs-button" type="menu">
|
<xul:toolbarbutton class="tabs-alltabs-button" type="menu" tooltip="_child">
|
||||||
|
<xul:tooltip anonid="alltabs-tooltip" label="&listAllTabs.label;"/>
|
||||||
<xul:menupopup class="tabs-alltabs-popup"
|
<xul:menupopup class="tabs-alltabs-popup"
|
||||||
anonid="alltabs-popup" position="after_end"/>
|
anonid="alltabs-popup" position="after_end"/>
|
||||||
</xul:toolbarbutton>
|
</xul:toolbarbutton>
|
||||||
|
Loading…
Reference in New Issue
Block a user