mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 06:35:42 +00:00
a041be0515
oops, set the clicktoscroll attribute on the pinstripe specific binding for tabbrowser. Otherwise, the tabs will scroll on mouseover. r=ben
77 lines
3.0 KiB
XML
77 lines
3.0 KiB
XML
<?xml version="1.0"?>
|
|
|
|
<!DOCTYPE bindings [
|
|
<!ENTITY % tabBrowserDTD SYSTEM "chrome://global/locale/tabbrowser.dtd" >
|
|
%tabBrowserDTD;
|
|
<!ENTITY % globalDTD SYSTEM "chrome://global/locale/global.dtd">
|
|
%globalDTD;
|
|
]>
|
|
|
|
<bindings id="globalBindings"
|
|
xmlns="http://www.mozilla.org/xbl"
|
|
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
|
xmlns:xbl="http://www.mozilla.org/xbl">
|
|
|
|
<binding id="tabbrowser-tab" extends="chrome://global/content/bindings/tabbrowser.xml#tabbrowser-tab">
|
|
<content chromedir="&locale.dir;"
|
|
closetabtext="&closeTab.label;">
|
|
<xul:hbox class="tab-image-left" xbl:inherits="selected"/>
|
|
<xul:hbox pack="center" align="center">
|
|
<xul:image anonid="close-button-placeholder" class="tab-close-button-placeholder"/>
|
|
</xul:hbox>
|
|
<xul:toolbarbutton anonid="close-button" class="tab-close-button"/>
|
|
<xul:hbox flex="1" class="tab-image-middle" align="center" xbl:inherits="selected">
|
|
<xul:stack class="tab-icon">
|
|
<xul:image xbl:inherits="validate,src=image" class="tab-icon-image"/>
|
|
<xul:image class="tab-extra-status"/>
|
|
</xul:stack>
|
|
<xul:label flex="1" xbl:inherits="value=label,crop,accesskey" crop="right" class="tab-text"/>
|
|
</xul:hbox>
|
|
<xul:hbox class="tab-image-right" xbl:inherits="selected"/>
|
|
</content>
|
|
</binding>
|
|
|
|
<binding id="tabs" extends="chrome://global/content/bindings/tabbox.xml#tabs">
|
|
<content>
|
|
<xul:spacer class="tab-border-top-left-cap"/>
|
|
<xul:spacer class="tab-border-top-left"/>
|
|
<children/>
|
|
<xul:stack flex="1">
|
|
<xul:spacer class="tab-border-top-right"/>
|
|
<xul:hbox class="tabs-misc-dec" align="center">
|
|
<xul:spacer flex="1"/>
|
|
</xul:hbox>
|
|
</xul:stack>
|
|
<xul:spacer class="tab-border-top-right-cap"/>
|
|
</content>
|
|
</binding>
|
|
|
|
<binding id="tabbrowser-tabs"
|
|
extends="chrome://global/content/bindings/tabbrowser.xml#tabbrowser-tabs">
|
|
<content>
|
|
<xul:stack flex="1" class="tabs-stack">
|
|
<xul:vbox>
|
|
<xul:spacer flex="1"/>
|
|
<xul:hbox class="tabs-bottom" align="center"/>
|
|
</xul:vbox>
|
|
<xul:vbox>
|
|
<xul:hbox>
|
|
<xul:stack>
|
|
<xul:spacer class="tabs-left"/>
|
|
</xul:stack>
|
|
<xul:arrowscrollbox anonid="arrowscrollbox" orient="horizontal" flex="1" style="min-width: 1px;" clicktoscroll="true">
|
|
<children/>
|
|
</xul:arrowscrollbox>
|
|
<xul:hbox class="tabs-closebutton-box" align="center" pack="end" anonid="tabstrip-closebutton">
|
|
<xul:toolbarbutton ondblclick="event.stopPropagation();"
|
|
class="close-button tabs-closebutton"
|
|
oncommand="this.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.removeCurrentTab()"/>
|
|
</xul:hbox>
|
|
</xul:hbox>
|
|
<xul:spacer class="tabs-bottom-spacer"/>
|
|
</xul:vbox>
|
|
</xul:stack>
|
|
</content>
|
|
</binding>
|
|
</bindings>
|