rename RemoveIdleSource to SuspendIdleCallback
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43879 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -53,7 +53,8 @@ public:
|
|||||||
#endif // __WXDEBUG__
|
#endif // __WXDEBUG__
|
||||||
|
|
||||||
guint m_idleTag;
|
guint m_idleTag;
|
||||||
void RemoveIdleSource();
|
// temporarily disable idle events
|
||||||
|
void SuspendIdleCallback();
|
||||||
|
|
||||||
// Used by the the wxGLApp and wxGLCanvas class for GL-based X visual
|
// Used by the the wxGLApp and wxGLCanvas class for GL-based X visual
|
||||||
// selection.
|
// selection.
|
||||||
|
@@ -135,7 +135,7 @@ bool wxApp::Yield(bool onlyIfNeeded)
|
|||||||
|
|
||||||
// We need to remove idle callbacks or the loop will
|
// We need to remove idle callbacks or the loop will
|
||||||
// never finish.
|
// never finish.
|
||||||
RemoveIdleSource();
|
SuspendIdleCallback();
|
||||||
|
|
||||||
#if wxUSE_LOG
|
#if wxUSE_LOG
|
||||||
// disable log flushing from here because a call to wxYield() shouldn't
|
// disable log flushing from here because a call to wxYield() shouldn't
|
||||||
@@ -628,7 +628,7 @@ void wxApp::OnAssertFailure(const wxChar *file,
|
|||||||
|
|
||||||
#endif // __WXDEBUG__
|
#endif // __WXDEBUG__
|
||||||
|
|
||||||
void wxApp::RemoveIdleSource()
|
void wxApp::SuspendIdleCallback()
|
||||||
{
|
{
|
||||||
#if wxUSE_THREADS
|
#if wxUSE_THREADS
|
||||||
wxMutexLocker lock(gs_idleTagsMutex);
|
wxMutexLocker lock(gs_idleTagsMutex);
|
||||||
|
@@ -103,7 +103,7 @@ bool wxEventLoop::Pending() const
|
|||||||
{
|
{
|
||||||
// We need to remove idle callbacks or gtk_events_pending will
|
// We need to remove idle callbacks or gtk_events_pending will
|
||||||
// never return false.
|
// never return false.
|
||||||
wxTheApp->RemoveIdleSource();
|
wxTheApp->SuspendIdleCallback();
|
||||||
}
|
}
|
||||||
|
|
||||||
return gtk_events_pending();
|
return gtk_events_pending();
|
||||||
|
Reference in New Issue
Block a user