state_file: use g_timeout_add_seconds()
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user