#if wxUSE_TIMER
#include "wx/gtk/private/timer.h"
+#include "wx/app.h"
#include <gtk/gtk.h>
// Release lock again.
gdk_threads_leave();
+ wxApp* app = wxTheApp;
+ if (app)
+ app->WakeUpIdle();
+
return keepGoing;
}
if ( !wxTimerImpl::Start(millisecs, oneShot) )
return false;
- wxASSERT_MSG( !m_sourceId, _T("shouldn't be still running") );
+ wxASSERT_MSG( !m_sourceId, wxT("shouldn't be still running") );
m_sourceId = g_timeout_add(m_milli, timeout_callback, this);
void wxGTKTimerImpl::Stop()
{
- wxASSERT_MSG( m_sourceId, _T("should be running") );
+ wxASSERT_MSG( m_sourceId, wxT("should be running") );
g_source_remove(m_sourceId);
m_sourceId = 0;