more search goodies, now using all installed sherlock plugins

This commit is contained in:
hewitt%netscape.com 2006-02-18 00:13:09 +00:00
Родитель 7326f41945
Коммит 2586da3737
1 изменённых файлов: 10 добавлений и 0 удалений

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

@ -11,6 +11,9 @@
var pbi = this.mPrefs.QueryInterface(Components.interfaces.nsIPrefBranchInternal);
if (pbi)
pbi.addObserver("browser.search", this.mPrefObserver, false);
if (this.hasAttribute("searchmode"))
updateEngines();
]]></constructor>
<destructor><![CDATA[
@ -46,6 +49,10 @@
<field name="currentSearchIcon">""</field>
<property name="searchMode"
onget="return this.getAttribute('searchmode');"
onset="this.setAttribute('searchmode', val); return val;"/>
<property name="searchValue" readonly="true">
<getter>
<![CDATA[
@ -98,6 +105,9 @@
this.currentSearchId = res.Value;
this.currentSearchName = this.readRDFString(ds, res, kNC_Name);
this.currentSearchIcon = this.readRDFString(ds, res, kNC_Icon);
if (this.firstChild && this.firstChild.localName == "image");
this.firstChild.setAttribute("src", this.currentSearchIcon);
}
}