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:
@@ -13,8 +13,9 @@
|
|||||||
#if wxUSE_TIMER
|
#if wxUSE_TIMER
|
||||||
|
|
||||||
#include "wx/timer.h"
|
#include "wx/timer.h"
|
||||||
|
#include "wx/app.h"
|
||||||
|
|
||||||
#include "gtk/gtk.h"
|
#include <gtk/gtk.h>
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// wxTimer
|
// wxTimer
|
||||||
@@ -45,6 +46,10 @@ static gint timeout_callback( gpointer data )
|
|||||||
// Release lock again.
|
// Release lock again.
|
||||||
gdk_threads_leave();
|
gdk_threads_leave();
|
||||||
|
|
||||||
|
wxApp* app = wxTheApp;
|
||||||
|
if (app)
|
||||||
|
app->WakeUpIdle();
|
||||||
|
|
||||||
if (timer->IsOneShot())
|
if (timer->IsOneShot())
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user