From c97d51e16df73c4b99332d6ca9c7563c86989fc9 Mon Sep 17 00:00:00 2001 From: rbuj Date: Wed, 22 Dec 2021 07:53:46 +0100 Subject: Fix implicit conversion changes signedness: 'gboolean' to 'guint' --- src/gs-prefs.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/gs-prefs.c') 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 -- cgit v1.2.1