mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 05:45:37 +00:00
Add Desktop Integration pref panel
This commit is contained in:
parent
94b682b963
commit
854508076f
@ -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) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
]]>
|
||||
|
@ -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>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user