<?xml version="1.0"?>

<bindings id="widgetBindings"
          xmlns="http://www.mozilla.org/xbl"
          xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
   
  <binding id="button-toolbar-2" extends="chrome://global/content/bindings/button.xml#button-base">
    <content>
  	  <xul:vbox class="button-internal-box" flex="1">
        <xul:hbox class="button-icon-box" pack="center">
          <xul:image class="button-icon" inherits="src"/>
        </xul:hbox>
        <xul:hbox class="button-text-container" flex="1" pack="center">
          <xul:text class="button-text" inherits="value=label,accesskey,crop,dragover-top"/>          	
        </xul:hbox>
      </xul:vbox>
      <children includes="menupopup"/>
    </content>
  </binding>

  <binding id="menubutton-dual-1"
           extends="chrome://global/content/bindings/menubutton.xml#menubutton-base">
    <content>
      <xul:stack class="menubutton-dual-stack">
        <xul:button class="menubutton-dual-button button-toolbar-1 top" allowevents="true" 
                    inherits="tooltiptext=buttontooltiptext,oncommand=buttonaction,src,label,crop,accesskey,disabled"/>
        <xul:hbox class="menubutton-dual-dropmarker-box" pack="center" flex="1">
          <xul:image class="menubutton-dual-dropmarker" inherits="disabled"/>
        </xul:hbox>
      </xul:stack>
      <children includes="menupopup"/>
    </content>
  </binding>

  <binding id="menubutton-dual-2"
           extends="chrome://global/content/bindings/menubutton.xml#menubutton-base">
    <content>
      <xul:stack class="menubutton-dual-stack">
        <xul:button class="menubutton-dual-button button-toolbar-2 top" allowevents="true" 
                    inherits="tooltiptext=buttontooltiptext,oncommand=buttonaction,src,label,crop,accesskey,disabled"/>
        <xul:hbox class="menubutton-dual-dropmarker-box" pack="center" flex="1">
          <xul:image class="menubutton-dual-dropmarker" inherits="disabled"/>
        </xul:hbox>
      </xul:stack>
      <children includes="menupopup"/>
    </content>
  </binding>
  
  <binding id="menubutton-toolbar-single"
           extends="chrome://global/content/bindings/menubutton.xml#menubutton-base">
    <content>
      <xul:hbox class="menubutton-internal-box" flex="1" align="center">
        <xul:image class="menubutton-icon" inherits="src,disabled"/>
        <xul:text class="menubutton-text" inherits="value=label,accesskey,crop,disabled,dragover-top" flex="1"/>
        <xul:image class="menubutton-dropmarker" inherits="menubuttontype,disabled"/>
      </xul:hbox>
      <children includes="menupopup"/>
    </content>
  </binding>
  
  <binding id="menubutton-toolbar-single-ile" display="xul:menu"
           extends="chrome://global/content/bindings/general.xml#inline-edit-base">
    <content>
      <xul:hbox class="menubutton-internal-box" flex="1" align="center">
        <xul:image class="menubutton-single-icon" inherits="src,disabled"/>
        <xul:hbox class="menubutton-toolbar-single-ile-text-container" 
                  flex="1" ileattr="text-container" align="center">
          <xul:text class="menubutton-text" 
                    inherits="value=label,accesskey,crop,disabled,dragover-top" 
                    ileattr="text" rootcontent="menubutton" flex="1" crop="right"/>
        </xul:hbox>
      </xul:hbox>
      <children includes="menupopup"/>
    </content>
  </binding>

</bindings>
