X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7214297d16aed4c160c1cbef6b19f153ca065ab7..d7c24517cb80580118ebd4ef1deb526be627c29c:/include/wx/gtk1/app.h diff --git a/include/wx/gtk1/app.h b/include/wx/gtk1/app.h index ac36884cfe..38f8a5a5d7 100644 --- a/include/wx/gtk1/app.h +++ b/include/wx/gtk1/app.h @@ -120,6 +120,10 @@ class wxApp: public wxEvtHandler #endif void DeletePendingObjects(); + /// This can be used to suppress the generation of Idle events. + inline void SuppressIdleEvents(bool arg = TRUE) { m_suppressIdleEvents = arg; } + inline bool GetSuppressIdleEvents() const { return m_suppressIdleEvents; } + bool m_initialized; bool m_exitOnFrameDelete; bool m_wantDebugOutput; @@ -136,7 +140,9 @@ class wxApp: public wxEvtHandler wxString m_className; static wxAppInitializerFunction m_appInitFn; - + private: + /// Set to TRUE while we are in wxYield(). + bool m_suppressIdleEvents; DECLARE_EVENT_TABLE() };