diff options
Diffstat (limited to 'mate-session/gsm-consolekit.c')
-rw-r--r-- | mate-session/gsm-consolekit.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/mate-session/gsm-consolekit.c b/mate-session/gsm-consolekit.c index 870fc80..b7c24bd 100644 --- a/mate-session/gsm-consolekit.c +++ b/mate-session/gsm-consolekit.c @@ -1,6 +1,7 @@ /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- * * Copyright (C) 2008 Jon McCann <[email protected]> + * Copyright (C) 2012-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_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"); } @@ -544,7 +545,6 @@ gsm_consolekit_attempt_hibernate (GsmConsolekit *manager) G_TYPE_INVALID, G_TYPE_INVALID); - if (!res) { g_warning ("Unable to hibernate system: %s", error->message); g_error_free (error); @@ -709,7 +709,6 @@ gsm_consolekit_set_session_idle (GsmConsolekit *manager, goto out; } - g_debug ("Updating ConsoleKit idle status: %d", is_idle); message = dbus_message_new_method_call (CK_NAME, session_id, @@ -1064,7 +1063,6 @@ out: return ret; } - GsmConsolekit * gsm_get_consolekit (void) { |