[gnome-session] [gsm] Also emit GsmConsoleKit signals when CK is not available



commit 0c05b13b39e4ae67f24f813bcefa421aa93d33fd
Author: Vincent Untz <vuntz gnome org>
Date:   Tue Jun 30 00:31:45 2009 +0200

    [gsm] Also emit GsmConsoleKit signals when CK is not available

 gnome-session/gsm-consolekit.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gnome-session/gsm-consolekit.c b/gnome-session/gsm-consolekit.c
index 3c2bff7..dc20292 100644
--- a/gnome-session/gsm-consolekit.c
+++ b/gnome-session/gsm-consolekit.c
@@ -595,6 +595,7 @@ gsm_consolekit_attempt_restart (GsmConsolekit *manager)
         if (!gsm_consolekit_ensure_ck_connection (manager, &error)) {
                 g_warning ("Could not connect to ConsoleKit: %s",
                            error->message);
+                emit_restart_complete (manager, error);
                 g_error_free (error);
                 return;
         }
@@ -626,6 +627,7 @@ gsm_consolekit_attempt_stop (GsmConsolekit *manager)
         if (!gsm_consolekit_ensure_ck_connection (manager, &error)) {
                 g_warning ("Could not connect to ConsoleKit: %s",
                            error->message);
+                emit_stop_complete (manager, error);
                 g_error_free (error);
                 return;
         }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]