Hide the mousewheel prefs panel on Macintosh, since we do not have

mousewheel scrolling implemented there.  r=ben.
This commit is contained in:
bryner%uiuc.edu 2006-05-17 02:25:37 +00:00
parent d178918090
commit 002bb8b0b9
2 changed files with 9 additions and 2 deletions

View File

@ -40,6 +40,13 @@
var element = document.getElementById( "cookiesCell" );
element.setAttribute( "value", element.getAttribute( "valueWithImages" ) );
}
if (top.window.navigator.platform == "Macintosh") {
var advancedChildren = document.getElementById("advancedChildren");
var mousewheelItem = document.getElementById("mousewheelItem");
advancedChildren.removeChild(mousewheelItem);
}
// Test for presence of "winhooks" component.
var showWinhooks = false;
try {

View File

@ -186,7 +186,7 @@
<treerow>
<treecell class="treecell-indent" url="chrome://communicator/content/pref/pref-advanced.xul" value="&advance.label;"/>
</treerow>
<treechildren>
<treechildren id="advancedChildren">
<treeitem>
<treerow>
<treecell class="treecell-indent" url="chrome://communicator/content/pref/pref-cookies.xul"
@ -209,7 +209,7 @@
<treecell class="treecell-indent" url="chrome://communicator/content/pref/pref-proxies.xul" value="&proxies.label;"/>
</treerow>
</treeitem>
<treeitem>
<treeitem id="mousewheelItem">
<treerow>
<treecell class="treecell-indent" url="chrome://communicator/content/pref/pref-mousewheel.xul" value="&mousewheel.label;"/>
</treerow>