From 6b3b5c0f90aa5227a56c6c85f6937f70b74fe3a3 Mon Sep 17 00:00:00 2001 From: ehouse Date: Fri, 9 Sep 2005 03:12:24 +0000 Subject: [PATCH] move fireTimer to linux-common code --- linux/gtkmain.c | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/linux/gtkmain.c b/linux/gtkmain.c index 9d144e90b..92ec33549 100644 --- a/linux/gtkmain.c +++ b/linux/gtkmain.c @@ -1034,14 +1034,6 @@ gtk_util_engineProgressCallback( XW_UtilCtxt* uc ) #endif } /* gtk_util_engineProgressCallback */ -static void -fireTimer( GtkAppGlobals* globals, XWTimerReason why ) -{ - TimerProc proc = globals->cGlobals.timerProcs[why]; - void* closure = globals->cGlobals.timerClosures[why]; - (*proc)( closure, why ); -} /* fireTimer */ - static void cancelTimer( GtkAppGlobals* globals, XWTimerReason why ) { @@ -1062,7 +1054,7 @@ pentimer_idle_func( gpointer data ) gettimeofday( &tv, NULL ); if ( (tv.tv_usec - globals->penTv.tv_usec) >= globals->penTimerInterval) { - fireTimer( globals, TIMER_PENDOWN ); + linuxFireTimer( globals, TIMER_PENDOWN ); callAgain = XP_FALSE; } @@ -1074,7 +1066,7 @@ score_timer_func( gpointer data ) { GtkAppGlobals* globals = (GtkAppGlobals*)data; - fireTimer( globals, TIMER_TIMERTICK ); + linuxFireTimer( globals, TIMER_TIMERTICK ); return XP_FALSE; } /* score_timer_func */ @@ -1085,7 +1077,7 @@ heartbeat_timer_func( gpointer data ) GtkAppGlobals* globals = (GtkAppGlobals*)data; if ( !globals->cGlobals.params->noHeartbeat ) { - fireTimer( globals, TIMER_HEARTBEAT ); + linuxFireTimer( globals, TIMER_HEARTBEAT ); } return (gint)0;