From 4da682e5a9e01232c7b590e40dfde2f5a7089897 Mon Sep 17 00:00:00 2001 From: "warren%netscape.com" Date: Fri, 12 Mar 1999 01:08:17 +0000 Subject: [PATCH] Added menu item to bring up messenger. --- xpfe/browser/src/navigator.xul | 33 ++++++++++++++++++++++++++------- 1 file changed, 26 insertions(+), 7 deletions(-) diff --git a/xpfe/browser/src/navigator.xul b/xpfe/browser/src/navigator.xul index a03d4646fe51..13be0e528567 100644 --- a/xpfe/browser/src/navigator.xul +++ b/xpfe/browser/src/navigator.xul @@ -104,7 +104,7 @@ { appCore = XPAppCoresManager.Find("BrowserAppCore"); if (appCore != null) { - dump("Opening New Window\n"); + dump("Opening New Window\n"); appCore.newWindow(); } else { dump("BrowserAppCore has not been created!\n"); @@ -166,6 +166,21 @@ } } + function OpenMessenger() + { + var toolkitCore = XPAppCoresManager.Find("ToolkitCore"); + if (!toolkitCore) { + toolkitCore = new ToolkitCore(); + if (toolkitCore) { + toolkitCore.Init("ToolkitCore"); + } + } + if (toolkitCore) { + toolkitCore.ShowWindow("resource:/res/samples/mailshell.xul", + window); + } + } + @@ -205,12 +220,16 @@ - - - - - - + + + + + + + + + +