Lifted GTK+ dependency in stat.c

This commit is contained in:
Artem Vorotnikov 2015-06-27 14:08:49 +03:00
parent 777c7d3bd8
commit ef5c56c3d4
2 changed files with 3 additions and 5 deletions

View File

@ -31,7 +31,6 @@
#include <glib.h>
#include <glib/gi18n.h>
#include <gtk/gtk.h>
#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);

View File

@ -21,7 +21,7 @@
#include <unistd.h> /* pid_t */
#include <gtk/gtk.h>
#include <glib.h>
#include "xqf.h"
#include "dns.h"