From b0fb776b32289efa0094c197da58827862499eba Mon Sep 17 00:00:00 2001 From: H.G.Muller Date: Sat, 19 Sep 2015 19:35:07 +0200 Subject: [PATCH] Fix periodic updates GTK Only the first periodic update event would occur, because the clock function did not retun True to encourage timer events to keep coming. --- gtk/xtimer.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/gtk/xtimer.c b/gtk/xtimer.c index f891a0e..8600e66 100644 --- a/gtk/xtimer.c +++ b/gtk/xtimer.c @@ -183,13 +183,14 @@ StartLoadGameTimer (long millisec) guint analysisClockTag = 0; -void +int AnalysisClockCallback(gpointer data) { if (gameMode == AnalyzeMode || gameMode == AnalyzeFile || appData.icsEngineAnalyze) { // [DM] AnalysisPeriodicEvent(0); } + return 1; } void -- 1.7.0.4