<?xml version="1.0"?>

<bindings id="menuButtonToolbarBindings"
          xmlns="http://www.mozilla.org/xbl"
          xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
          
  <binding id="menubutton-toolbar-top">
    <content>
     <xul:hbox class="classic-simplebutton-box" align="center" flex="1">
        <xul:button class="classic-simplebutton" allowevents="true" flex="1"
                  inherits="label,src,accesskey,crop,disabled,oncommand=buttonaction" 
                  onmousedown="this.parentNode.setAttribute('buttondown','true');"
                  onmouseup="this.parentNode.removeAttribute('buttondown');"
                  onmouseover="this.parentNode.setAttribute('buttonover','true');"
                  onmouseout="this.parentNode.removeAttribute('buttonover');"/>
       </xul:hbox>
       <xul:hbox class="classic-dropmarker-box" align="center" inherits="disabled">
          <xul:image class="classic-dropmarker" inherits="disabled"/>
       </xul:hbox>
     <children includes="menupopup"/>
    </content>
  </binding>
  
  <binding id="buttonleft" extends="chrome://global/content/bindings/button.xml#base-button">
    <content>
      <xul:hbox align="center" flex="1">
        <xul:image class="classic-simplebutton-icon" inherits="src"/>
        <xul:vbox class="classic-simplebutton-textbox" align="center" flex="1">
          <xul:text class="classic-simplebutton-text" inherits="value=label,accesskey,crop"/>
        </xul:vbox>
      </xul:hbox>
    </content>
  </binding>

  <binding id="buttontop" extends="chrome://global/content/bindings/button.xml#base-button">
    <content>
      <xul:vbox flex="1" align="center">
        <xul:image class="classic-simplebutton-icon" inherits="src"/>
        <xul:vbox class="classic-simplebutton-textbox" align="center" flex="1">
          <xul:text class="classic-simplebutton-text" inherits="value=label,accesskey,crop"/>
        </xul:vbox>
      </xul:vbox>
    </content>
  </binding>
  
</bindings>
