From b98fc03c405e75eec1433dd25f8dc02cbc202260 Mon Sep 17 00:00:00 2001 From: "mcmullen%netscape.com" Date: Fri, 26 Mar 1999 23:58:22 +0000 Subject: [PATCH] Hooked up preferences --- xpfe/browser/src/navigator.xul | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/xpfe/browser/src/navigator.xul b/xpfe/browser/src/navigator.xul index 2c5c1a891f5..5c94de97e79 100644 --- a/xpfe/browser/src/navigator.xul +++ b/xpfe/browser/src/navigator.xul @@ -70,6 +70,7 @@ appCore.setDisableCallback("DoDisableButtons();"); appCore.setEnableCallback("DoEnableButtons();"); dump("Adding BrowserAppCore to AppCoreManager...\n"); + dump("...probably for a second time, because the constructor of nsBaseAppCore does this!\n"); XPAppCoresManager.Add(appCore); } } else { @@ -309,6 +310,21 @@ } } + function DoPreferences() + { + var toolkitCore = XPAppCoresManager.Find("ToolkitCore"); + if (!toolkitCore) { + toolkitCore = new ToolkitCore(); + if (toolkitCore) { + toolkitCore.Init("ToolkitCore"); + } + } + if (toolkitCore) { + toolkitCore.ShowWindow("resource:/res/samples/PrefsWindow.html", + window); + } + } + @@ -367,7 +383,7 @@ - +