make sure timer events will trigger idle processing, #10251

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@57170 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Paul Cornett
2008-12-07 18:23:28 +00:00
parent 1392ea4b39
commit 177fb2b1e4

View File

@@ -13,8 +13,9 @@
#if wxUSE_TIMER
#include "wx/timer.h"
#include "wx/app.h"
#include "gtk/gtk.h"
#include <gtk/gtk.h>
// ----------------------------------------------------------------------------
// wxTimer
@@ -45,6 +46,10 @@ static gint timeout_callback( gpointer data )
// Release lock again.
gdk_threads_leave();
wxApp* app = wxTheApp;
if (app)
app->WakeUpIdle();
if (timer->IsOneShot())
return FALSE;