From 177fb2b1e4845932e803e6dba0e10a94af0e9519 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Sun, 7 Dec 2008 18:23:28 +0000 Subject: [PATCH] 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 --- src/gtk/timer.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/gtk/timer.cpp b/src/gtk/timer.cpp index eb7a15fbb5..3b132f0a3b 100644 --- a/src/gtk/timer.cpp +++ b/src/gtk/timer.cpp @@ -13,8 +13,9 @@ #if wxUSE_TIMER #include "wx/timer.h" +#include "wx/app.h" -#include "gtk/gtk.h" +#include // ---------------------------------------------------------------------------- // 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;