summaryrefslogtreecommitdiff
path: root/src/gs-prefs.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-prefs.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-prefs.c')
-rw-r--r--src/gs-prefs.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/gs-prefs.c b/src/gs-prefs.c
index 7fc8522..e9d42e2 100644
--- a/src/gs-prefs.c
+++ b/src/gs-prefs.c
@@ -215,35 +215,35 @@ static void
_gs_prefs_set_idle_activation_enabled (GSPrefs *prefs,
gboolean value)
{
- prefs->idle_activation_enabled = value;
+ prefs->idle_activation_enabled = (value != FALSE);
}
static void
_gs_prefs_set_lock_enabled (GSPrefs *prefs,
gboolean value)
{
- prefs->lock_enabled = value;
+ prefs->lock_enabled = (value != FALSE);
}
static void
_gs_prefs_set_lock_disabled (GSPrefs *prefs,
gboolean value)
{
- prefs->lock_disabled = value;
+ prefs->lock_disabled = (value != FALSE);
}
static void
_gs_prefs_set_user_switch_disabled (GSPrefs *prefs,
gboolean value)
{
- prefs->user_switch_disabled = value;
+ prefs->user_switch_disabled = (value != FALSE);
}
static void
_gs_prefs_set_keyboard_enabled (GSPrefs *prefs,
gboolean value)
{
- prefs->keyboard_enabled = value;
+ prefs->keyboard_enabled = (value != FALSE);
}
static void
@@ -265,14 +265,14 @@ static void
_gs_prefs_set_status_message_enabled (GSPrefs *prefs,
gboolean enabled)
{
- prefs->status_message_enabled = enabled;
+ prefs->status_message_enabled = (enabled != FALSE);
}
static void
_gs_prefs_set_logout_enabled (GSPrefs *prefs,
gboolean value)
{
- prefs->logout_enabled = value;
+ prefs->logout_enabled = (value != FALSE);
}
static void
@@ -309,7 +309,7 @@ static void
_gs_prefs_set_user_switch_enabled (GSPrefs *prefs,
gboolean value)
{
- prefs->user_switch_enabled = value;
+ prefs->user_switch_enabled = (value != FALSE);
}
static void