Some unix stuff
git-svn-id: svn://10.0.0.236/trunk@2035 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user