projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
on iPhone default is to cover entire screen
[wxWidgets.git]
/
src
/
common
/
timerimpl.cpp
diff --git
a/src/common/timerimpl.cpp
b/src/common/timerimpl.cpp
index d952af816f79d9d2d44e46745f4cacc33b7bc140..5d8548329b2be7b5135623d2538e605be10e4db7 100644
(file)
--- a/
src/common/timerimpl.cpp
+++ b/
src/common/timerimpl.cpp
@@
-29,6
+29,7
@@
#include "wx/private/timer.h"
#include "wx/utils.h" // for wxNewId()
#include "wx/private/timer.h"
#include "wx/utils.h" // for wxNewId()
+#include "wx/thread.h"
wxTimerImpl::wxTimerImpl(wxTimer *timer)
{
wxTimerImpl::wxTimerImpl(wxTimer *timer)
{
@@
-47,9
+48,8
@@
void wxTimerImpl::SetOwner(wxEvtHandler *owner, int timerid)
void wxTimerImpl::SendEvent()
{
void wxTimerImpl::SendEvent()
{
- wxTimerEvent event(m_idTimer, m_milli);
- event.SetEventObject(m_owner);
- (void)m_owner->ProcessEvent(event);
+ wxTimerEvent event(*m_timer);
+ (void)m_owner->SafelyProcessEvent(event);
}
bool wxTimerImpl::Start(int milliseconds, bool oneShot)
}
bool wxTimerImpl::Start(int milliseconds, bool oneShot)
@@
-58,7
+58,7
@@
bool wxTimerImpl::Start(int milliseconds, bool oneShot)
// let the caller know about it
#if wxUSE_THREADS
wxASSERT_MSG( wxThread::IsMain(),
// let the caller know about it
#if wxUSE_THREADS
wxASSERT_MSG( wxThread::IsMain(),
-
_
T("timer can only be started from the main thread") );
+
wx
T("timer can only be started from the main thread") );
#endif // wxUSE_THREADS
if ( IsRunning() )
#endif // wxUSE_THREADS
if ( IsRunning() )