зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
8dbf7ffa9e
Коммит
d0f1bf1b4d
|
@ -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"/>
|
||||||
|
@ -2649,6 +2650,11 @@
|
||||||
"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>
|
||||||
<field name="mFlashStart">6</field>
|
<field name="mFlashStart">6</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>
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче