From 7fa67f5cba576e8983b6a143f90f8d9a1b72d1bd Mon Sep 17 00:00:00 2001 From: Rob Arnold Date: Fri, 30 Jul 2010 13:11:06 -0400 Subject: [PATCH] Bug 580522 - Need a user-visible pref to disable Aero Peek r=gavin ui-r+a=beltzner --- browser/components/preferences/tabs.js | 19 +++++++++++++++++++ browser/components/preferences/tabs.xul | 11 +++++++++++ .../en-US/chrome/browser/preferences/tabs.dtd | 3 +++ 3 files changed, 33 insertions(+) diff --git a/browser/components/preferences/tabs.js b/browser/components/preferences/tabs.js index 5d9440e341a..41b59ee4172 100644 --- a/browser/components/preferences/tabs.js +++ b/browser/components/preferences/tabs.js @@ -60,8 +60,27 @@ var gTabsPane = { * browser.tabs.warnOnOpen * - true if the user should be warned if he attempts to open a lot of tabs at * once (e.g. a large folder of bookmarks), false otherwise + * browser.taskbar.previews.enable + * - true if tabs are to be shown in the Windows 7 taskbar */ +#ifdef XP_WIN + /** + * Initialize any platform-specific UI. + */ + init: function () { + const Cc = Components.classes; + const Ci = Components.interfaces; + try { + let sysInfo = Cc["@mozilla.org/system-info;1"]. + getService(Ci.nsIPropertyBag2); + let ver = parseFloat(sysInfo.getProperty("version")); + let showTabsInTaskbar = document.getElementById("showTabsInTaskbar"); + showTabsInTaskbar.hidden = ver < 6.1; + } catch (ex) {} + }, +#endif + /** * Determines where a link which opens a new window will open. * diff --git a/browser/components/preferences/tabs.xul b/browser/components/preferences/tabs.xul index e3160146d95..6f57200b588 100644 --- a/browser/components/preferences/tabs.xul +++ b/browser/components/preferences/tabs.xul @@ -50,6 +50,9 @@ xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> @@ -58,6 +61,9 @@ +#ifdef XP_WIN + +#endif