diff --git a/src/stat.c b/src/stat.c index 483030d..64cf9d7 100644 --- a/src/stat.c +++ b/src/stat.c @@ -31,7 +31,6 @@ #include #include -#include #include "xqf.h" #include "game.h" @@ -1011,7 +1010,7 @@ static void stat_close (struct stat_job *job, int killed) { } if (job->delayed.refresh_handler) { - gtk_timeout_remove (job->delayed.timeout_id); + g_source_remove (job->delayed.timeout_id); } for (tmp = job->close_handlers; tmp; tmp = tmp->next) { @@ -1934,8 +1933,7 @@ void stat_start (struct stat_job *job) { debug_increase_indent(); debug (3, "Job %p", job); if (job->delayed.refresh_handler) { - job->delayed.timeout_id = gtk_timeout_add (1000, - job->delayed.refresh_handler, job); + job->delayed.timeout_id = g_timeout_add (1000, job->delayed.refresh_handler, job); } stat_next (job); diff --git a/src/stat.h b/src/stat.h index 1f9945a..d2db8ce 100644 --- a/src/stat.h +++ b/src/stat.h @@ -21,7 +21,7 @@ #include /* pid_t */ -#include +#include #include "xqf.h" #include "dns.h"