summaryrefslogtreecommitdiff
path: root/mate-session/gsm-systemd.c
diff options
context:
space:
mode:
Diffstat (limited to 'mate-session/gsm-systemd.c')
-rw-r--r--mate-session/gsm-systemd.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/mate-session/gsm-systemd.c b/mate-session/gsm-systemd.c
index 8a375c2..7f7dde1 100644
--- a/mate-session/gsm-systemd.c
+++ b/mate-session/gsm-systemd.c
@@ -1,5 +1,6 @@
/*
* Copyright (C) 2013 Stefano Karapetsas <[email protected]>
+ * Copyright (C) 2013-2021 MATE Developers
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -244,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");
}
@@ -632,7 +633,6 @@ out:
}
}
-
void
gsm_systemd_set_session_idle (GsmSystemd *manager,
gboolean is_idle)
@@ -1008,7 +1008,6 @@ gsm_systemd_get_current_session_type (GsmSystemd *manager)
return session_class;
}
-
GsmSystemd *
gsm_get_systemd (void)
{