<?xml version="1.0"?>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
   - License, v. 2.0. If a copy of the MPL was not distributed with this
   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

<!DOCTYPE bindings>

<bindings id="smileyBindings"
          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="smiley" extends="chrome://global/content/bindings/richlistbox.xml#richlistitem">
    <content>
      <xul:hbox flex="1" equalsize="always">
        <xul:hbox flex="1" class="smileyImageBox">
          <xul:image class="smileyImage" xbl:inherits="src=smileyImage"/>
        </xul:hbox>
        <xul:label flex="1" class="smileyTextCodes" crop="end" xbl:inherits="value=smileyTextCodes"/>
      </xul:hbox>
    </content>
  </binding>

  <!-- chrome://global/content/bindings/tree.xml#treecol simplified so
   that we don't throw JS errors from the onclick handler -->
  <binding id="treecol" role="xul:treecolumnitem"
           extends="chrome://global/content/bindings/tree.xml#tree-base">
    <content>
      <xul:label class="treecol-text" xbl:inherits="crop,value=label" flex="1" crop="right"/>
    </content>
  </binding>
</bindings>
