summaryrefslogtreecommitdiff
path: root/src/gs-watcher-x11.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gs-watcher-x11.c')
-rw-r--r--src/gs-watcher-x11.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/gs-watcher-x11.c b/src/gs-watcher-x11.c
index 58ea07e..f3f44e1 100644
--- a/src/gs-watcher-x11.c
+++ b/src/gs-watcher-x11.c
@@ -2,6 +2,7 @@
*
* Copyright (C) 2004-2006 William Jon McCann <[email protected]>
* Copyright (C) 2008 Red Hat, Inc.
+ * Copyright (C) 2012-2021 MATE Developers
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -88,11 +89,11 @@ remove_watchdog_timer (GSWatcher *watcher)
static void
add_watchdog_timer (GSWatcher *watcher,
- glong timeout)
+ guint timeout)
{
watcher->priv->watchdog_timer_id = g_timeout_add (timeout,
- (GSourceFunc)watchdog_timer,
- watcher);
+ (GSourceFunc)watchdog_timer,
+ watcher);
}
static void
@@ -202,7 +203,7 @@ _gs_watcher_set_session_idle_notice (GSWatcher *watcher,
{
gs_debug ("Changing idle notice state: %d", in_effect);
- watcher->priv->idle_notice = in_effect;
+ watcher->priv->idle_notice = (in_effect != FALSE);
}
else
{
@@ -229,7 +230,7 @@ _gs_watcher_set_session_idle (GSWatcher *watcher,
{
gs_debug ("Changing idle state: %d", is_idle);
- watcher->priv->idle = is_idle;
+ watcher->priv->idle = (is_idle != FALSE);
}
else
{
@@ -268,7 +269,7 @@ _gs_watcher_set_active_internal (GSWatcher *watcher,
/* reset state */
_gs_watcher_reset_state (watcher);
- watcher->priv->active = active;
+ watcher->priv->active = (active != FALSE);
}
return TRUE;
@@ -308,7 +309,7 @@ gs_watcher_set_enabled (GSWatcher *watcher,
{
gboolean is_active = gs_watcher_get_active (watcher);
- watcher->priv->enabled = enabled;
+ watcher->priv->enabled = (enabled != FALSE);
/* if we are disabling the watcher and we are
active shut it down */
@@ -641,7 +642,6 @@ disable_builtin_screensaver (GSWatcher *watcher,
}
}
-
/* This timer goes off every few minutes, whether the user is idle or not,
to try and clean up anything that has gone wrong.