fix for #15054. pref migration progress dialog sizes to content now.

This commit is contained in:
sspitzer%netscape.com 1999-09-28 03:01:53 +00:00
Родитель 629618c6c6
Коммит 364c109806
1 изменённых файлов: 6 добавлений и 14 удалений

Просмотреть файл

@ -133,6 +133,8 @@
/* and the winner is: Windows */
#define PREF_FILE_NAME_IN_5x "prefs.js"
#define PREF_MIGRATION_PROGRESS_URL "resource:/res/profile/pmunprog.xul"
typedef struct
{
const char* oldFile;
@ -276,29 +278,19 @@ nsPrefMigration::ProcessPrefs()
{
nsresult rv;
nsCOMPtr<nsIURI> pmprogressURL;
PRInt32 pmWinWidth = 300;
PRInt32 pmWinHeight = 200;
nsAutoString args;
const char *pmprogressStr = "resource:/res/profile/pmunprog.xul";
NS_WITH_SERVICE(nsIAppShellService, PMProgressAppShell,
kAppShellServiceCID, &rv);
if (NS_FAILED(rv))
return rv;
if (NS_FAILED(rv)) return rv;
rv = NS_NewURI(getter_AddRefs(pmprogressURL), pmprogressStr);
rv = NS_NewURI(getter_AddRefs(pmprogressURL), PREF_MIGRATION_PROGRESS_URL);
if (NS_FAILED(rv)) return rv;
rv = PMProgressAppShell->CreateTopLevelWindow(nsnull, pmprogressURL,
PR_TRUE, PR_TRUE, NS_CHROME_ALL_CHROME,
nsnull, pmWinWidth, pmWinHeight,
nsnull, NS_SIZETOCONTENT, NS_SIZETOCONTENT,
getter_AddRefs(mPMProgressWindow));
if (NS_FAILED(rv))
{
return rv;
}
if (NS_FAILED(rv)) return rv;
//PMProgressAppShell->Run();
mPMProgressWindow->ShowModal();