summaryrefslogtreecommitdiff
path: root/src/gs-watcher-x11.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-12-22 07:53:46 +0100
committerVictor Kareh <[email protected]>2022-03-22 16:13:14 -0400
commitc97d51e16df73c4b99332d6ca9c7563c86989fc9 (patch)
tree78e7d4014dbf50db3726d0b969545f6ad90c1f24 /src/gs-watcher-x11.c
parent75fb2de203206f7a0f76b3ba5241a79e31ef607f (diff)
downloadmate-screensaver-c97d51e16df73c4b99332d6ca9c7563c86989fc9.tar.bz2
mate-screensaver-c97d51e16df73c4b99332d6ca9c7563c86989fc9.tar.xz
Fix implicit conversion changes signedness: 'gboolean' to 'guint'
Diffstat (limited to 'src/gs-watcher-x11.c')
-rw-r--r--src/gs-watcher-x11.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gs-watcher-x11.c b/src/gs-watcher-x11.c
index 98b32d1..f3f44e1 100644
--- a/src/gs-watcher-x11.c
+++ b/src/gs-watcher-x11.c
@@ -203,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
{
@@ -230,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
{
@@ -269,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;
@@ -309,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 */