removed OnIdle() which didn't compile any longer
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21943 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -53,9 +53,6 @@ public:
|
|||||||
virtual bool Yield(bool onlyIfNeeded = FALSE);
|
virtual bool Yield(bool onlyIfNeeded = FALSE);
|
||||||
virtual void WakeUpIdle() { CocoaRequestIdle(); }
|
virtual void WakeUpIdle() { CocoaRequestIdle(); }
|
||||||
|
|
||||||
/* Idle Processing */
|
|
||||||
void OnIdle(wxIdleEvent& event);
|
|
||||||
|
|
||||||
virtual bool Initialize(int& argc, wxChar **argv);
|
virtual bool Initialize(int& argc, wxChar **argv);
|
||||||
virtual void CleanUp();
|
virtual void CleanUp();
|
||||||
virtual bool CallOnInit();
|
virtual bool CallOnInit();
|
||||||
|
@@ -134,7 +134,6 @@ void wxApp::Exit()
|
|||||||
#if !USE_SHARED_LIBRARY
|
#if !USE_SHARED_LIBRARY
|
||||||
IMPLEMENT_DYNAMIC_CLASS(wxApp, wxEvtHandler)
|
IMPLEMENT_DYNAMIC_CLASS(wxApp, wxEvtHandler)
|
||||||
BEGIN_EVENT_TABLE(wxApp, wxEvtHandler)
|
BEGIN_EVENT_TABLE(wxApp, wxEvtHandler)
|
||||||
EVT_IDLE(wxApp::OnIdle)
|
|
||||||
// EVT_END_SESSION(wxApp::OnEndSession)
|
// EVT_END_SESSION(wxApp::OnEndSession)
|
||||||
// EVT_QUERY_END_SESSION(wxApp::OnQueryEndSession)
|
// EVT_QUERY_END_SESSION(wxApp::OnQueryEndSession)
|
||||||
END_EVENT_TABLE()
|
END_EVENT_TABLE()
|
||||||
@@ -275,33 +274,6 @@ void wxApp::Dispatch()
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxApp::OnIdle(wxIdleEvent& event)
|
|
||||||
{
|
|
||||||
wxLogDebug("wxApp::OnIdle");
|
|
||||||
static bool s_inOnIdle = FALSE;
|
|
||||||
|
|
||||||
// Avoid recursion (via ProcessEvent default case)
|
|
||||||
if ( s_inOnIdle )
|
|
||||||
return;
|
|
||||||
s_inOnIdle = TRUE;
|
|
||||||
|
|
||||||
|
|
||||||
DeletePendingObjects();
|
|
||||||
|
|
||||||
// flush the logged messages if any
|
|
||||||
wxLog *pLog = wxLog::GetActiveTarget();
|
|
||||||
if ( pLog != NULL && pLog->HasPendingMessages() )
|
|
||||||
pLog->Flush();
|
|
||||||
|
|
||||||
// Send OnIdle events to all windows
|
|
||||||
bool needMore = SendIdleEvents();
|
|
||||||
|
|
||||||
if (needMore)
|
|
||||||
event.RequestMore(TRUE);
|
|
||||||
|
|
||||||
s_inOnIdle = FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Yield to other processes
|
// Yield to other processes
|
||||||
|
|
||||||
bool wxApp::Yield(bool onlyIfNeeded)
|
bool wxApp::Yield(bool onlyIfNeeded)
|
||||||
|
Reference in New Issue
Block a user