<?xml version="1.0"?>
<bindings xmlns="http://www.mozilla.org/xbl" xmlns:xbl="http://www.mozilla.org/xbl" xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
    <binding id="widget-menubutton" extends="chrome://global/content/bindings/toolbarbutton.xml#menu-button">
        <content>
            <children includes="observes|template|menupopup|panel|tooltip"/>
            <xul:toolbarbutton class="box-inherit toolbarbutton-menubutton-button" anonid="button" flex="1" allowevents="true" xbl:inherits="show-label,show-icon,disabled,crop,image,label,counter,accesskey,command,align,dir,pack,orient" />
            <xul:dropmarker type="menu-button" class="toolbarbutton-menubutton-dropmarker" xbl:inherits="align,dir,pack,orient,disabled,label" />
        </content>
    </binding>
    <binding id="widget-button" extends="chrome://global/content/bindings/toolbarbutton.xml#toolbarbutton">
        <resources>
            <stylesheet src="widget-button.css" />
        </resources>
        <content>
            <children includes="observes|template|menupopup|panel|tooltip" />
            <xul:image class="toolbarbutton-icon" xbl:inherits="validate,src=image,label"/>
            <xul:label class="toolbarbutton-text toolbarbutton-label" style="margin-right: 0px !important; margin-left: 3px !important;" crop="right" flex="1" xbl:inherits="value=label,accesskey,crop" />
            <xul:label class="toolbarbutton-text toolbarbutton-counter" style="margin-right: 0px !important; margin-left: 4px !important;" crop="right" flex="1" xbl:inherits="value=counter,accesskey,crop" />
        </content>
    </binding>
    <binding id="widget-menuonlybutton" extends="chrome://global/content/bindings/toolbarbutton.xml#menu">
        <resources>
            <stylesheet src="widget-button.css" />
        </resources>
        <content>
            <children includes="observes|template|menupopup|panel|tooltip"/>
            <xul:image class="toolbarbutton-icon" xbl:inherits="validate,src=image,label"/>
            <xul:label class="toolbarbutton-text toolbarbutton-label" style="margin-right: 0px !important; margin-left: 3px !important;" crop="right" flex="1" xbl:inherits="value=label,accesskey,crop" />
            <xul:label class="toolbarbutton-text toolbarbutton-counter" style="margin-right: 0px !important; margin-left: 4px !important;" crop="right" flex="1" xbl:inherits="value=counter,accesskey,crop" />
            <xul:dropmarker type="menu-button" class="toolbarbutton-menubutton-dropmarker" xbl:inherits="align,dir,pack,orient,disabled,label" />
        </content>
    </binding>
    <binding id="widget-menuitem-iconic" extends="chrome://global/content/bindings/menu.xml#menuitem-iconic">
        <implementation implements="nsISupports, nsIDOMEventListener">
            <constructor><![CDATA[
                var cn = this.className;
                if (!/menuitem-with-favicon/.test(cn)) {
                    this.className = cn + ' menuitem-with-favicon';
                }
            ]]></constructor>
        </implementation>
    </binding>
	<binding id="tt-row-counter">
		<content>
			<xul:cell><xul:label class="tt-row-counter-label" xbl:inherits="value=label"/></xul:cell>
            <xul:cell><xul:label class="tt-row-counter-counter" xbl:inherits="value=counter"/></xul:cell>
		</content>
	</binding>
</bindings>