From 1e07ed25a778fa59f06ded839670cef8bf28b3d1 Mon Sep 17 00:00:00 2001 From: "mcafee%netscape.com" Date: Wed, 6 Oct 1999 23:54:47 +0000 Subject: [PATCH] Adding option for modeless pref dialog, ifdef'd off by default. r=akkana --- xpfe/components/prefwindow/src/nsPrefWindow.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/xpfe/components/prefwindow/src/nsPrefWindow.cpp b/xpfe/components/prefwindow/src/nsPrefWindow.cpp index f54532f81d1..8238f1acca1 100644 --- a/xpfe/components/prefwindow/src/nsPrefWindow.cpp +++ b/xpfe/components/prefwindow/src/nsPrefWindow.cpp @@ -209,9 +209,19 @@ NS_IMETHODIMP nsPrefWindow::ShowWindow( nsIXULWindowCallbacks *cb = nsnull; nsCOMPtr parent; DOMWindowToWebShellWindow(currentFrontWin, &parent); + + +#if defined(MODELESS_PREF_DIALOG)||defined(DEBUG_mcafee)||defined(DEBUG_akkana) + // testing modeless pref window. -mcafee + nsIWebShellWindow *foo = nsnull; + rv = appShell->CreateTopLevelWindow(parent, urlObj, PR_TRUE, PR_TRUE, + NS_CHROME_ALL_CHROME | NS_CHROME_OPEN_AS_DIALOG, + cb, 504, 436, &foo); +#else rv = appShell->RunModalDialog(nsnull, parent, urlObj, NS_CHROME_ALL_CHROME | NS_CHROME_OPEN_AS_DIALOG, cb, 504, 436); +#endif return rv; } // nsPrefWindow::ShowWindow()