toolkit/mozapps/handling/content/handler.xml

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/toolkit/mozapps/handling/content/handler.xml	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,28 @@
     1.4 +<?xml version="1.0"?>
     1.5 +<!-- This Source Code Form is subject to the terms of the Mozilla Public
     1.6 +   - License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 +   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
     1.8 +
     1.9 +<bindings id="hanlder-bindings"
    1.10 +          xmlns="http://www.mozilla.org/xbl"
    1.11 +          xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
    1.12 +          xmlns:xbl="http://www.mozilla.org/xbl">
    1.13 +
    1.14 +  <binding id="handler"
    1.15 +           extends="chrome://global/content/bindings/richlistbox.xml#richlistitem">
    1.16 +
    1.17 +    <content>
    1.18 +      <xul:vbox pack="center">
    1.19 +        <xul:image xbl:inherits="src=image" height="32" width="32"/>
    1.20 +      </xul:vbox>
    1.21 +      <xul:vbox flex="1">
    1.22 +        <xul:label class="name" xbl:inherits="value=name"/>
    1.23 +        <xul:label class="description" xbl:inherits="value=description"/>
    1.24 +      </xul:vbox>
    1.25 +    </content>
    1.26 +    <implementation>
    1.27 +      <property name="label" onget="return this.getAttribute('name') + ' ' + this.getAttribute('description');"/>
    1.28 +    </implementation>
    1.29 +  </binding>
    1.30 +
    1.31 +</bindings>

mercurial