X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/655719367ac5e131d9642e5783f3ecf64d1a3385..f60b1d829dd8a6d5e47a2adcd3690acb3bd10150:/src/motif/app.cpp diff --git a/src/motif/app.cpp b/src/motif/app.cpp index 30ddd80a6d..4add04f7cf 100644 --- a/src/motif/app.cpp +++ b/src/motif/app.cpp @@ -38,7 +38,6 @@ #pragma message disable nosimpint #endif #include -#include #include #include #include @@ -188,7 +187,7 @@ static char *fallbackResources[] = { bool wxApp::OnInitGui() { if( !wxAppBase::OnInitGui() ) - return FALSE; + return false; XtToolkitInitialize() ; wxTheApp->m_appContext = (WXAppContext) XtCreateApplicationContext(); @@ -228,7 +227,7 @@ bool wxApp::OnInitGui() wxAddIdleCallback(); - return TRUE; + return true; } WXColormap wxApp::GetMainColormap(WXDisplay* display) @@ -307,9 +306,9 @@ WXWidget wxCreateTopLevelWidget( WXDisplay* display ) WXWidget wxCreateTopLevelRealizedWidget( WXDisplay* display ) { - Widget rTlw = XtVaCreateWidget( "dummy_widget", xmLabelWidgetClass, + Widget rTlw = XtVaCreateWidget( "dummy_widget", topLevelShellWidgetClass, (Widget)wxTheApp->GetTopLevelWidget(), - NULL); + NULL, 0 ); XtSetMappedWhenManaged( rTlw, False ); XtRealizeWidget( rTlw ); @@ -360,7 +359,7 @@ void wxApp::SetTopLevelRealizedWidget(WXDisplay* display, WXWidget widget) bool wxApp::Yield(bool onlyIfNeeded) { - static bool s_inYield = FALSE; + static bool s_inYield = false; if ( s_inYield ) { @@ -369,17 +368,17 @@ bool wxApp::Yield(bool onlyIfNeeded) wxFAIL_MSG( wxT("wxYield called recursively" ) ); } - return FALSE; + return false; } - s_inYield = TRUE; + s_inYield = true; while (wxTheApp && wxTheApp->Pending()) wxTheApp->Dispatch(); - s_inYield = FALSE; + s_inYield = false; - return TRUE; + return true; } // ----------------------------------------------------------------------------