Skip to content
Snippets Groups Projects
Commit 0309df65 authored by O H's avatar O H Committed by Sean Davis
Browse files

change unit of cycle from milliseconds to seconds


Signed-off-by: default avatarOlaf Hering <olaf@aepfle.de>
parent 504ed748
No related branches found
No related tags found
No related merge requests found
......@@ -413,8 +413,8 @@ remove_cycle_timer (GSManager *manager) {
static void
add_cycle_timer (GSManager *manager,
glong timeout) {
manager->priv->cycle_timeout_id = g_timeout_add (timeout,
glong seconds) {
manager->priv->cycle_timeout_id = g_timeout_add_seconds (seconds,
(GSourceFunc)cycle_timeout,
manager);
}
......@@ -802,7 +802,7 @@ manager_show_window (GSManager *manager,
remove_lock_timer (manager);
add_lock_timer (manager, manager->priv->prefs->lock_timeout);
if (manager->priv->prefs->cycle >= 10000) {
if (manager->priv->prefs->cycle >= 10) {
remove_cycle_timer (manager);
add_cycle_timer (manager, manager->priv->prefs->cycle);
}
......
......@@ -141,7 +141,7 @@ _gs_prefs_set_cycle_timeout (GSPrefs *prefs,
if (value > 480)
value = 480;
prefs->cycle = value * 60000;
prefs->cycle = value * 60;
}
static void
......@@ -603,7 +603,7 @@ gs_prefs_init (GSPrefs *prefs) {
prefs->timeout = 600000;
prefs->lock_timeout = 0;
prefs->logout_timeout = 14400000;
prefs->cycle = 600000;
prefs->cycle = 600;
prefs->mode = GS_MODE_SINGLE;
......
......@@ -230,7 +230,7 @@ typedef struct
guint timeout; /* how much idle time before activation */
guint lock_timeout; /* how long after activation locking starts */
guint logout_timeout; /* how long until the logout option appears */
guint cycle; /* how long each theme should run */
guint cycle; /* how many seconds each theme should run */
guint fullscreen_inhibit : 1; /* inhibit screensaver when an application is fullscreen */
char *logout_command; /* command to use to logout */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment