diff --git a/mozilla/suite/common/tasksOverlay.js b/mozilla/suite/common/tasksOverlay.js index b2374a037c9..ee397c1ddea 100644 --- a/mozilla/suite/common/tasksOverlay.js +++ b/mozilla/suite/common/tasksOverlay.js @@ -204,4 +204,22 @@ function checkFocusedWindow() } } +function toProfileManager() +{ + var ww = Components.classes["@mozilla.org/embedcomp/window-watcher;1"] + .getService(Components.interfaces.nsIWindowWatcher); + var params = Components.classes["@mozilla.org/embedcomp/dialogparam;1"] + .createInstance(Components.interfaces.nsIDialogParamBlock); + + params.SetNumberStrings(1); + params.SetString(0, "menu"); + ww.openWindow(null, // no parent + "chrome://communicator/content/profile/profileSelection.xul", + null, + "centerscreen,chrome,modal,titlebar", + params); + + // Here, we don't care about the result code + // that was returned in the param block. +} diff --git a/mozilla/suite/common/tasksOverlay.xul b/mozilla/suite/common/tasksOverlay.xul index af108e92ec5..4730df15f89 100644 --- a/mozilla/suite/common/tasksOverlay.xul +++ b/mozilla/suite/common/tasksOverlay.xul @@ -19,6 +19,7 @@ + @@ -36,6 +37,8 @@ + + diff --git a/mozilla/suite/locales/en-US/chrome/common/tasksOverlay.dtd b/mozilla/suite/locales/en-US/chrome/common/tasksOverlay.dtd index 5bd8945ff68..0756e0d9030 100644 --- a/mozilla/suite/locales/en-US/chrome/common/tasksOverlay.dtd +++ b/mozilla/suite/locales/en-US/chrome/common/tasksOverlay.dtd @@ -35,3 +35,7 @@ + + + +