From 67461bd124df1c391a7e4d7cd3e68febb2a83ee2 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Sat, 9 Dec 2006 17:46:20 +0000 Subject: [PATCH] rename RemoveIdleSource to SuspendIdleCallback git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43879 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/gtk/app.h | 3 ++- src/gtk/app.cpp | 4 ++-- src/gtk/evtloop.cpp | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/include/wx/gtk/app.h b/include/wx/gtk/app.h index dc9d3f50de..3d862eafd4 100644 --- a/include/wx/gtk/app.h +++ b/include/wx/gtk/app.h @@ -53,7 +53,8 @@ public: #endif // __WXDEBUG__ guint m_idleTag; - void RemoveIdleSource(); + // temporarily disable idle events + void SuspendIdleCallback(); // Used by the the wxGLApp and wxGLCanvas class for GL-based X visual // selection. diff --git a/src/gtk/app.cpp b/src/gtk/app.cpp index 05cf17cf56..e68e9654d6 100644 --- a/src/gtk/app.cpp +++ b/src/gtk/app.cpp @@ -135,7 +135,7 @@ bool wxApp::Yield(bool onlyIfNeeded) // We need to remove idle callbacks or the loop will // never finish. - RemoveIdleSource(); + SuspendIdleCallback(); #if wxUSE_LOG // disable log flushing from here because a call to wxYield() shouldn't @@ -628,7 +628,7 @@ void wxApp::OnAssertFailure(const wxChar *file, #endif // __WXDEBUG__ -void wxApp::RemoveIdleSource() +void wxApp::SuspendIdleCallback() { #if wxUSE_THREADS wxMutexLocker lock(gs_idleTagsMutex); diff --git a/src/gtk/evtloop.cpp b/src/gtk/evtloop.cpp index 11406deb0b..2b2bfa91c4 100644 --- a/src/gtk/evtloop.cpp +++ b/src/gtk/evtloop.cpp @@ -103,7 +103,7 @@ bool wxEventLoop::Pending() const { // We need to remove idle callbacks or gtk_events_pending will // never return false. - wxTheApp->RemoveIdleSource(); + wxTheApp->SuspendIdleCallback(); } return gtk_events_pending();