From a9dc0e816c0b6c0ed19a584225e3fe6251f1a4c6 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 13 Oct 2009 16:12:44 +0200 Subject: state_file: use g_timeout_add_seconds() --- src/state_file.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/state_file.c b/src/state_file.c index 4ba157b1..aa66720c 100644 --- a/src/state_file.c +++ b/src/state_file.c @@ -134,8 +134,9 @@ state_file_init(const char *path) state_file_path = g_strdup(path); state_file_read(); - save_state_source_id = g_timeout_add(5 * 60 * 1000, - timer_save_state_file, NULL); + save_state_source_id = g_timeout_add_seconds(5 * 60, + timer_save_state_file, + NULL); } void -- cgit v1.2.3