bug 346760: shouldn't require type=unichar for non-ASCII prefs

patch by Justin Wood (irc: Callek) <bugspam.Callek@gmail.com>, r=ben@mozilla.org
This commit is contained in:
db48x%yahoo.com 2006-08-06 06:33:49 +00:00
Родитель d46aa88612
Коммит 9f064d92f3
1 изменённых файлов: 2 добавлений и 5 удалений

Просмотреть файл

@ -279,12 +279,11 @@
case "bool":
var val = this._branch.getBoolPref(this.name);
return this.inverted ? !val : val;
case "string":
return this._branch.getCharPref(this.name);
case "wstring":
return this._branch
.getComplexValue(this.name, Components.interfaces.nsIPrefLocalizedString)
.data;
case "string":
case "unichar":
return this._branch
.getComplexValue(this.name, Components.interfaces.nsISupportsString)
@ -314,9 +313,6 @@
case "bool":
this.preferences.rootBranch.setBoolPref(this.name, this.inverted ? !val : val);
break;
case "string":
this.preferences.rootBranch.setCharPref(this.name, val);
break;
case "wstring":
var pls = Components.classes["@mozilla.org/pref-localizedstring;1"]
.createInstance(Components.interfaces.nsIPrefLocalizedString);
@ -324,6 +320,7 @@
this.preferences.rootBranch
.setComplexValue(this.name, Components.interfaces.nsIPrefLocalizedString, pls);
break;
case "string":
case "unichar":
var iss = Components.classes["@mozilla.org/supports-string;1"]
.createInstance(Components.interfaces.nsISupportsString);