summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mate-session/gsm-consolekit.c2
-rw-r--r--mate-session/gsm-systemd.c2
-rw-r--r--mate-session/gsm-xsmp-client.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/mate-session/gsm-consolekit.c b/mate-session/gsm-consolekit.c
index 6ff7644..45101c8 100644
--- a/mate-session/gsm-consolekit.c
+++ b/mate-session/gsm-consolekit.c
@@ -245,7 +245,7 @@ gsm_consolekit_ensure_ck_connection (GsmConsolekit *manager,
out:
if (priv->is_connected != is_connected) {
- priv->is_connected = is_connected;
+ priv->is_connected = (is_connected != FALSE);
g_object_notify (G_OBJECT (manager), "is-connected");
}
diff --git a/mate-session/gsm-systemd.c b/mate-session/gsm-systemd.c
index f11a26b..74def27 100644
--- a/mate-session/gsm-systemd.c
+++ b/mate-session/gsm-systemd.c
@@ -245,7 +245,7 @@ gsm_systemd_ensure_sd_connection (GsmSystemd *manager,
out:
if (priv->is_connected != is_connected) {
- priv->is_connected = is_connected;
+ priv->is_connected = (is_connected != FALSE);
g_object_notify (G_OBJECT (manager), "is-connected");
}
diff --git a/mate-session/gsm-xsmp-client.c b/mate-session/gsm-xsmp-client.c
index 17bca6f..bffecac 100644
--- a/mate-session/gsm-xsmp-client.c
+++ b/mate-session/gsm-xsmp-client.c
@@ -439,7 +439,7 @@ do_save_yourself (GsmXSMPClient *client,
g_debug ("GsmXSMPClient: queuing new SaveYourself for '%s'",
priv->description);
priv->next_save_yourself = save_type;
- priv->next_save_yourself_allow_interact = allow_interact;
+ priv->next_save_yourself_allow_interact = (allow_interact != FALSE);
} else {
priv->current_save_yourself = save_type;
/* make sure we don't have anything queued */