// Created: 17/09/98
// RCS-ID: $Id$
// Copyright: (c) Julian Smart
-// Licence: wxWidgets licence
+// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
bool wxApp::OnInitGui()
{
if( !wxAppBase::OnInitGui() )
- return FALSE;
+ return false;
XtToolkitInitialize() ;
wxTheApp->m_appContext = (WXAppContext) XtCreateApplicationContext();
wxAddIdleCallback();
- return TRUE;
+ return true;
}
WXColormap wxApp::GetMainColormap(WXDisplay* display)
bool wxApp::Yield(bool onlyIfNeeded)
{
- static bool s_inYield = FALSE;
+ static bool s_inYield = false;
if ( s_inYield )
{
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;
}
// ----------------------------------------------------------------------------