]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/timercmn.cpp
Make radiobutton tab behaviour the same on MSW
[wxWidgets.git] / src / common / timercmn.cpp
index fc89d353ac5522212fe1e06cf136c046f31215fa..5fd7fd476756316c50f25d1b302a71017564660e 100644 (file)
@@ -18,7 +18,7 @@
 // wxWin headers
 // ----------------------------------------------------------------------------
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
     #pragma implementation "timerbase.h"
 #endif
 
@@ -57,6 +57,7 @@ void wxTimerBase::Notify()
     wxCHECK_RET( m_owner, _T("wxTimer::Notify() should be overridden.") );
 
     wxTimerEvent event(m_idTimer, m_milli);
+    event.SetEventObject(this);
     (void)m_owner->ProcessEvent(event);
 }