From 79dfcf33c7f6963266375a1b5b1a94e11b7a2d5c Mon Sep 17 00:00:00 2001 From: "mcafee%netscape.com" Date: Tue, 27 Mar 2001 09:27:31 +0000 Subject: [PATCH] openLocation.xul moved from navigator to communicator, url unassigned and not needed (70164). r=jag, sr=ben --- widget/src/gtk/nsGtkMozRemoteHelper.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/widget/src/gtk/nsGtkMozRemoteHelper.cpp b/widget/src/gtk/nsGtkMozRemoteHelper.cpp index 9dea4224449..b869c0ea138 100644 --- a/widget/src/gtk/nsGtkMozRemoteHelper.cpp +++ b/widget/src/gtk/nsGtkMozRemoteHelper.cpp @@ -631,20 +631,20 @@ nsGtkMozRemoteHelper::OpenURLDialog (void) { nsresult rv; nsCOMPtr lastWindow; - nsString name; - nsString url; - name.AssignWithConversion("_blank"); // get the last used browser window rv = GetLastBrowserWindow(getter_AddRefs(lastWindow)); if (NS_FAILED(rv)) return NS_ERROR_FAILURE; + + // get the last used browser window + // use it to open the open location dialog - rv = OpenXULWindow ("chrome://navigator/content/openLocation.xul", + rv = OpenXULWindow ("chrome://communicator/content/openLocation.xul", lastWindow, "chrome,modal", - name.GetUnicode(), - url.GetUnicode()); + NS_LITERAL_STRING("_blank").get(), + nsnull); if (NS_FAILED(rv)) return NS_ERROR_FAILURE; return NS_OK;