]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mgl/app.cpp
wxHTTP::GetResponse() added (patch 794394)
[wxWidgets.git] / src / mgl / app.cpp
index d7126b0fccfd6802ce67e53b34d090f54fb30907..dffb68253cd5086a2f005231e6c4cf07ffa376e0 100644 (file)
@@ -7,7 +7,7 @@
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
     #pragma implementation "app.h"
 #endif
 
@@ -208,7 +208,7 @@ BEGIN_EVENT_TABLE(wxApp, wxEvtHandler)
 END_EVENT_TABLE()
 
 
-wxApp::wxApp() : m_mainLoop(NULL)
+wxApp::wxApp()
 {
 }
 
@@ -272,37 +272,9 @@ bool wxApp::OnInitGui()
     return TRUE;
 }
 
-int wxApp::MainLoop()
-{
-    int rt;
-    m_mainLoop = new wxEventLoop;
-
-    rt = m_mainLoop->Run();
-
-    delete m_mainLoop;
-    m_mainLoop = NULL;
-    return rt;
-}
-
-void wxApp::ExitMainLoop()
-{
-    if ( m_mainLoop )
-        m_mainLoop->Exit(0);
-}
-
 bool wxApp::Initialized()
 {
-    return (wxTopLevelWindows.GetCount() != 0);
-}
-
-bool wxApp::Pending()
-{
-    return wxEventLoop::GetActive()->Pending();
-}
-
-void wxApp::Dispatch()
-{
-    wxEventLoop::GetActive()->Dispatch();
+    return wxTopLevelWindows.GetCount() != 0;
 }
 
 bool wxApp::Initialize(int& argc, wxChar **argv)