summaryrefslogtreecommitdiff
path: root/src/gs-listener-dbus.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-listener-dbus.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-listener-dbus.c')
-rw-r--r--src/gs-listener-dbus.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gs-listener-dbus.c b/src/gs-listener-dbus.c
index 42acfd0..520926d 100644
--- a/src/gs-listener-dbus.c
+++ b/src/gs-listener-dbus.c
@@ -363,7 +363,7 @@ gs_listener_set_throttle (GSListener *listener,
{
gs_debug ("Changing throttle status: %d", throttled);
- listener->priv->throttled = throttled;
+ listener->priv->throttled = (throttled != FALSE);
g_signal_emit (listener, signals [THROTTLE_CHANGED], 0, throttled);
}
@@ -390,7 +390,7 @@ static gboolean
listener_set_session_idle_internal (GSListener *listener,
gboolean idle)
{
- listener->priv->session_idle = idle;
+ listener->priv->session_idle = (idle != FALSE);
if (idle)
{
@@ -408,7 +408,7 @@ static gboolean
listener_set_active_internal (GSListener *listener,
gboolean active)
{
- listener->priv->active = active;
+ listener->priv->active = (active != FALSE);
/* if idle not in sync with active, change it */
if (listener->priv->session_idle != active)
@@ -496,7 +496,7 @@ gs_listener_set_session_idle (GSListener *listener,
}
}
- listener->priv->session_idle = idle;
+ listener->priv->session_idle = (idle != FALSE);
res = listener_check_activation (listener);
/* if activation fails then don't set idle */
@@ -541,7 +541,7 @@ gs_listener_set_activation_enabled (GSListener *listener,
if (listener->priv->activation_enabled != enabled)
{
- listener->priv->activation_enabled = enabled;
+ listener->priv->activation_enabled = (enabled != FALSE);
}
}