Add Desktop Integration pref panel

This commit is contained in:
law%netscape.com 2000-05-13 00:41:56 +00:00
parent 94b682b963
commit 854508076f
2 changed files with 27 additions and 0 deletions

View File

@ -40,6 +40,27 @@
var element = document.getElementById( "cookiesCell" );
element.setAttribute( "value", element.getAttribute( "valueWithImages" ) );
}
// Test for presence of "winhooks" component.
var showWinhooks = false;
try {
var winhooks = Components.classes["component://mozilla/winhooks"].getService();
if ( winhooks ) {
showWinhooks = true;
}
}
catch(e) {
}
if ( !showWinhooks ) {
// Hide this tree element.
try {
var cell = document.getElementById( "winhooks" );
if ( cell ) {
cell.parentNode.removeChild( cell );
}
}
catch(e) {
}
}
}
]]>

View File

@ -214,6 +214,12 @@
<treecell class="treecell-indent" url="chrome://communicator/content/pref/pref-mousewheel.xul" value="&mousewheel.label;"/>
</treerow>
</treeitem>
<treeitem id="winhooks">
<treerow>
<treecell class="treecell-indent" url="chrome://communicator/content/pref/pref-winhooks.xul" value="&winhooks.label;"/>
</treerow>
</treeitem>
</treechildren>
</treeitem>