state_file: use g_timeout_add_seconds()

This commit is contained in:
Max Kellermann
2009-10-13 16:12:44 +02:00
parent 4390d72b14
commit a9dc0e816c

View File

@@ -134,8 +134,9 @@ state_file_init(const char *path)
state_file_path = g_strdup(path); state_file_path = g_strdup(path);
state_file_read(); state_file_read();
save_state_source_id = g_timeout_add(5 * 60 * 1000, save_state_source_id = g_timeout_add_seconds(5 * 60,
timer_save_state_file, NULL); timer_save_state_file,
NULL);
} }
void void