Some unix stuff

git-svn-id: svn://10.0.0.236/trunk@2035 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
spider
1998-05-20 17:59:52 +00:00
parent c5eba1ff11
commit 83c4fc037c
2 changed files with 53 additions and 31 deletions

View File

@@ -81,6 +81,8 @@ nsresult nsShellInstance::Run()
}
return ((nsresult)msg.wParam);
#elif NS_UNIX
extern XtAppContext app_context ;
XtAppMainLoop(app_context) ;
#else
return NS_OK;
@@ -191,7 +193,7 @@ nsIWidget * nsShellInstance::CreateApplicationWindow(const nsRect &aRect,
mApplicationWindow->Create((nsIWidget*)NULL,
aRect,
aHandleEventFunction,
NULL);
nsnull, nsnull, GetNativeInstance());
return (mApplicationWindow);
}
@@ -201,6 +203,10 @@ nsresult nsShellInstance::ShowApplicationWindow(PRBool show)
{
mApplicationWindow->Show(show);
#ifdef NS_UNIX
XtRealizeWidget((Widget)GetNativeInstance());
#endif
return NS_OK;
}