]> git.saurik.com Git - wxWidgets.git/commitdiff
wxMGL compilation fixes
authorVáclav Slavík <vslavik@fastmail.fm>
Thu, 18 Sep 2003 10:01:59 +0000 (10:01 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Thu, 18 Sep 2003 10:01:59 +0000 (10:01 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23657 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/evtloop.h
include/wx/mgl/app.h
src/mgl/app.cpp
src/mgl/utils.cpp

index dcd2a766e07cb1eaf4e842c35a5172b73e03029d..084bc9f162fcedb0274db45dcf99fb20027ffaa3 100644 (file)
@@ -16,6 +16,8 @@
     #pragma interface "evtloop.h"
 #endif
 
+#include "wx/utils.h"
+
 class WXDLLEXPORT wxEventLoopImpl;
 
 // ----------------------------------------------------------------------------
index c1e6aca51774893ff24b1ed8cb3a5e866f079735..fa98fc1e935dad011176227a21ba06d411dcf6aa 100644 (file)
@@ -46,7 +46,9 @@ public:
 
     virtual bool Initialize(int& argc, wxChar **argv);
     virtual void CleanUp();
-
+    
+    virtual void Exit();
+    virtual void WakeUpIdle();
     virtual bool Yield(bool onlyIfNeeded = FALSE);
 
     virtual wxDisplayModeInfo GetDisplayMode() const { return m_displayMode; }
index d92b40c293ecb58b52c7a8d0447aa871a261d958..dffb68253cd5086a2f005231e6c4cf07ffa376e0 100644 (file)
@@ -208,7 +208,7 @@ BEGIN_EVENT_TABLE(wxApp, wxEvtHandler)
 END_EVENT_TABLE()
 
 
-wxApp::wxApp() : m_mainLoop(NULL)
+wxApp::wxApp()
 {
 }
 
index a5c2f9349716369a005ca1269f00fa41aeaf3492..209597e1409a93f910f58eaf7dffdde6ac0c1378 100644 (file)
@@ -208,24 +208,26 @@ int wxDisplayDepth()
     return g_displayDC->getBitsPerPixel();
 }
 
-int wxGUIAppTraits::GetOSVersion(int *majorVsn, int *minorVsn)
+wxToolkitInfo& wxGUIAppTraits::GetToolkitInfo()
 {
-    if ( majorVsn )
-        *majorVsn = MGL_RELEASE_MAJOR;
-    if ( minorVsn )
-        *minorVsn = MGL_RELEASE_MINOR;
-
+    static wxToolkitInfo info;
+    info.shortName = _T("mgluniv");
+    info.name = _T("wxMGL");
+    info.versionMajor = MGL_RELEASE_MAJOR;
+    info.versionMinor = MGL_RELEASE_MINOR;
+    info.os = wxGTK;
 #if defined(__UNIX__)
-    return wxMGL_UNIX;
+    info.os = wxMGL_UNIX;
 #elif defined(__OS2__)
-    return wxMGL_OS2;
+    info.os = wxMGL_OS2;
 #elif defined(__WIN32__)
-    return wxMGL_WIN32;
+    info.os = wxMGL_WIN32;
 #elif defined(__DOS__)
-    return wxMGL_DOS;
+    info.os = wxMGL_DOS;
 #else
     #error Platform not supported by wxMGL!
 #endif
+    return info;
 }