From 285320317f695f5c0e446e1bd12ba094bbbda0e0 Mon Sep 17 00:00:00 2001 From: "jelwell%netscape.com" Date: Wed, 17 May 2006 02:32:07 +0000 Subject: [PATCH] Bug 128377, Generalize Turbo Code r=law, sr=alecf, r=ssu, sr=slogan a=asa --- suite/common/pref/pref-advanced.xul | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/suite/common/pref/pref-advanced.xul b/suite/common/pref/pref-advanced.xul index 43252ba0ec2..fc8bfcdcf53 100644 --- a/suite/common/pref/pref-advanced.xul +++ b/suite/common/pref/pref-advanced.xul @@ -82,7 +82,7 @@ } var winhooksService = Components.classes["@mozilla.org/winhooks;1"].getService(Components.interfaces.nsIWindowsHooks); if (winhooksService) { - parent.isTurboEnabled = winhooksService.isStartupTurboEnabled(); + parent.isTurboEnabled = winhooksService.isOptionEnabled("-turbo"); document.getElementById("enableTurbo").checked = parent.isTurboEnabled; } @@ -111,9 +111,9 @@ var winhooksService = Components.classes["@mozilla.org/winhooks;1"].getService(Components.interfaces.nsIWindowsHooks); if (winhooksService && parent.isTurboEnabled != -1) { if (parent.isTurboEnabled) - winhooksService.startupTurboEnable(); + winhooksService.startupAddOption("-turbo"); else - winhooksService.startupTurboDisable(); + winhooksService.startupRemoveOption("-turbo"); var appShell = Components.classes['@mozilla.org/appshell/appShellService;1'].getService(); appShell = appShell.QueryInterface( Components.interfaces.nsIAppShellService ); var nativeAppSupport = null;