r=mkaply, a=blizzard
Change initialization of widget resources to we can embed


git-svn-id: svn://10.0.0.236/trunk@90182 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mkaply%us.ibm.com
2001-03-23 03:19:06 +00:00
parent 3ddc369197
commit 33007e25ed
13 changed files with 211 additions and 109 deletions

View File

@@ -289,18 +289,19 @@ extern "C" nsresult NS_CreateAppshell( nsIAppShell **aAppShell)
if( !aAppShell)
return NS_ERROR_NULL_POINTER;
BOOL bFirstTime = FALSE;
if( !pManager)
{
bFirstTime = TRUE;
pManager = new nsAppshellManager;
}
*aAppShell = pManager->GetAppshell();
if( bFirstTime)
gModuleData.Init( *aAppShell);
// only do this the very first time
if (gModuleData == nsnull)
{
gModuleData = new nsWidgetModuleData();
gModuleData->Init(*aAppShell);
}
return NS_OK;
}