]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/timerimpl.cpp
Don't use "Cancel" button in the about dialog of the listctrl sample.
[wxWidgets.git] / src / common / timerimpl.cpp
index 3f94268d218ef9f88d6a81870df78c398ab2a0f5..8c89ad68d9ba6c6295f3eb33107b5e1045f9eb69 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        common/timercmn.cpp
+// Name:        src/common/timerimpl.cpp
 // Purpose:     wxTimerBase implementation
 // Author:      Julian Smart, Guillermo Rodriguez, Vadim Zeitlin
 // Modified by: VZ: extracted all non-wxTimer stuff in stopwatch.cpp (20.06.03)
@@ -29,6 +29,7 @@
 
 #include "wx/private/timer.h"
 #include "wx/utils.h"               // for wxNewId()
+#include "wx/thread.h"
 
 wxTimerImpl::wxTimerImpl(wxTimer *timer)
 {
@@ -48,7 +49,7 @@ void wxTimerImpl::SetOwner(wxEvtHandler *owner, int timerid)
 void wxTimerImpl::SendEvent()
 {
     wxTimerEvent event(*m_timer);
-    (void)m_owner->ProcessEvent(event);
+    (void)m_owner->SafelyProcessEvent(event);
 }
 
 bool wxTimerImpl::Start(int milliseconds, bool oneShot)
@@ -57,7 +58,7 @@ bool wxTimerImpl::Start(int milliseconds, bool oneShot)
     // let the caller know about it
 #if wxUSE_THREADS
     wxASSERT_MSG( wxThread::IsMain(),
-                  _T("timer can only be started from the main thread") );
+                  wxT("timer can only be started from the main thread") );
 #endif // wxUSE_THREADS
 
     if ( IsRunning() )