<?xml version="1.0"?>

<bindings id="buttonBindings"
          xmlns="http://www.mozilla.org/xbl"
          xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

  <binding id="buttonleft" extends="chrome://global/content/xulBindings.xml#basetext">
    <content>
      <xul:box class="button-box-1" flex="1">
        <xul:box class="button-box-2" autostretch="never" flex="1">
          <xul:image class="button-icon" inherits="src"/>
          <xul:box class="button-box-text" flex="1" autostretch="never">
            <xul:text class="button-text" inherits="disabled,value=label,accesskey,crop"/>
          </xul:box>
        </xul:box>
      </xul:box>
    </content>
  </binding>

  <binding id="buttonright" extends="chrome://global/content/xulBindings.xml#basetext">
    <content>
      <xul:box class="button-box-1" flex="1">
        <xul:box class="button-box-2" autostretch="never" flex="1">
          <xul:box class="button-box-text" flex="1" autostretch="never">
            <xul:text class="button-text" inherits="disabled,value=label,accesskey,crop"/>
          </xul:box>
          <xul:image class="button-icon" inherits="src"/>
        </xul:box>
      </xul:box>
    </content>
  </binding>
  
  <binding id="buttontop" extends="chrome://global/content/xulBindings.xml#basetext">
    <content>
      <xul:box class="button-box-1" flex="1">
        <xul:box class="button-box-2" autostretch="never" flex="1" orient="vertical" align="center">
          <xul:image class="button-icon" inherits="src"/>
          <xul:box class="button-box-text" flex="1" autostretch="never">
            <xul:text class="button-text" inherits="disabled,value=label,accesskey,crop"/>
          </xul:box>
        </xul:box>
      </xul:box>
    </content>
  </binding>

  <binding id="buttonbottom" extends="chrome://global/content/xulBindings.xml#basetext">
    <content>
      <xul:box class="button-box-1" flex="1">
        <xul:box class="button-box-2" autostretch="never" flex="1" orient="vertical" align="center">
          <xul:box class="button-box-text" flex="1" autostretch="never">
            <xul:text class="button-text" inherits="disabled,value=label,accesskey,crop"/>
          </xul:box>
          <xul:image class="button-icon" inherits="src"/>
        </xul:box>
      </xul:box>
    </content>
  </binding>

  <binding id="simplebutton" extends="chrome://global/content/xulBindings.xml#basetext">
    <content orient="vertical" autostretch="never" align="center">
      <xul:image class="simplebutton-icon" inherits="src,disabled"/>
      <xul:text class="simplebutton-text" inherits="value=label,accesskey,crop,disabled"/>
    </content>
  </binding>
  
</bindings>