]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/mac/app.h
Fix building wxSTC as a DLL using MinGW GCC 3.x.
[wxWidgets.git] / include / wx / mac / app.h
index 7269c6e0d79c092aa2c14a95e5351ef21d94056a..0b32e7983bc26e56435f7ac04d8bc674de9f9a3e 100644 (file)
@@ -12,7 +12,7 @@
 #ifndef _WX_APP_H_
 #define _WX_APP_H_
 
-#if defined(__GNUG__) && !defined(__APPLE__)
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
 #pragma interface "app.h"
 #endif
 
@@ -87,8 +87,11 @@ public:
     
     bool IsExiting() { return !m_keepGoing ; }
 #if TARGET_CARBON
+    // the installed application event handler
     WXEVENTHANDLERREF    MacGetEventHandler() { return m_macEventHandler ; }
     WXEVENTHANDLERREF    MacGetCurrentEventHandlerCallRef() { return m_macCurrentEventHandlerCallRef ; }
+    void MacSetCurrentEvent( WXEVENTREF event , WXEVENTHANDLERCALLREF handler )
+    { m_macCurrentEvent = event ; m_macCurrentEventHandlerCallRef = handler ; }
 #endif
 
 public:
@@ -105,8 +108,8 @@ private:
 
     // mac specifics
 #if TARGET_CARBON
-    WXEVENTHANDLERREF      m_macEventHandler ;
-    WXEVENTHANDLERCALLREF      m_macCurrentEventHandlerCallRef ;
+    WXEVENTHANDLERREF     m_macEventHandler ;
+    WXEVENTHANDLERCALLREF m_macCurrentEventHandlerCallRef ;
 #endif
     WXEVENTREF            m_macCurrentEvent ;