134039 - theme switching should shut down quicklaunch. r=law sr=hyatt

This commit is contained in:
blakeross%telocity.com 2002-04-28 14:28:18 +00:00
Родитель d0159fa123
Коммит e40a5f69cb
2 изменённых файлов: 19 добавлений и 0 удалений

Просмотреть файл

@ -1464,6 +1464,16 @@ function applyTheme(themeName)
str.data = name;
pref.setComplexValue("general.skins.selectedSkin", Components.interfaces.nsISupportsWString, str);
// shut down quicklaunch so the next launch will have the new skin
var appShell = Components.classes['@mozilla.org/appshell/appShellService;1'].getService();
appShell = appShell.QueryInterface(Components.interfaces.nsIAppShellService);
try {
appShell.nativeAppSupport.isServerMode = false;
}
catch(ex) {
}
if (promptService) {
var dialogTitle = gNavigatorBundle.getString("switchskinstitle");
var brandName = gBrandBundle.getString("brandShortName");

Просмотреть файл

@ -128,6 +128,15 @@ function applySkin()
kPrefSvc.setComplexValue("general.skins.selectedSkin", Components.interfaces.nsISupportsWString, str);
// shut down quicklaunch so the next launch will have the new skin
var appShell = Components.classes['@mozilla.org/appshell/appShellService;1'].getService();
appShell = appShell.QueryInterface(Components.interfaces.nsIAppShellService);
try {
appShell.nativeAppSupport.isServerMode = false;
}
catch(ex) {
}
var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService(Components.interfaces.nsIPromptService);
var strBundleService = Components.classes["@mozilla.org/intl/stringbundle;1"].getService();