495930: Textbox support in preferences, r=mfinkle

This commit is contained in:
Fabrice Desré 2009-06-05 11:39:34 -04:00
parent a26b9c5d6e
commit 85dbff3b40
2 changed files with 28 additions and 0 deletions

View File

@ -27,6 +27,10 @@ richpref[type="button"] {
-moz-binding: url("chrome://browser/content/preferences/richpref.xml#richpref-button");
}
richpref[type="string"] {
-moz-binding: url("chrome://browser/content/preferences/richpref.xml#richpref-string");
}
notificationbox {
overflow: -moz-hidden-unscrollable;
}

View File

@ -172,4 +172,28 @@
</xul:preferences>
</content>
</binding>
<binding id="richpref-string" extends="chrome://browser/content/preferences/richpref.xml#richpref-base">
<content>
<xul:hbox flex="1" class="prefbox">
<xul:vbox flex="1">
<xul:label class="preftitle" xbl:inherits="value=title" crop="end" flex="1"/>
<xul:label class="prefdesc" xbl:inherits="value=desc" crop="end" flex="1">
<children/>
</xul:label>
</xul:vbox>
<xul:hbox anonid="input-container">
<xul:textbox xbl:inherits="type=inputtype" anonid="input" oninput="inputChanged();"/>
</xul:hbox>
</xul:hbox>
<xul:preferences>
<xul:preference anonid="pref" xbl:inherits="name=pref,type,inverted"
instantApply="true" onchange="prefChanged();"/>
</xul:preferences>
</content>
<implementation>
<property name="value" onget="return this.input.value;" onset="return this.input.value=val;"/>
</implementation>
</binding>
</bindings>