[gnome-power-manager] Don't crash if there is no ConsoleKit session. Fixes rh#699020
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-power-manager] Don't crash if there is no ConsoleKit session. Fixes rh#699020
- Date: Mon, 13 Jun 2011 16:50:10 +0000 (UTC)
commit dde1b743659866c348e33ecc65b46fed94be5488
Author: Richard Hughes <richard hughsie com>
Date: Tue Apr 26 10:54:32 2011 +0100
Don't crash if there is no ConsoleKit session. Fixes rh#699020
src/egg-console-kit.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/egg-console-kit.c b/src/egg-console-kit.c
index 312188e..cbbff63 100644
--- a/src/egg-console-kit.c
+++ b/src/egg-console-kit.c
@@ -205,7 +205,7 @@ egg_console_kit_is_local (EggConsoleKit *console, gboolean *is_local, GError **e
/* maybe console kit does not know about our session */
if (console->priv->proxy_session == NULL) {
- g_warning ("no ConsoleKit session");
+ g_set_error_literal (error, 1, 0, "no ConsoleKit session");
goto out;
}
@@ -246,7 +246,7 @@ egg_console_kit_is_active (EggConsoleKit *console, gboolean *is_active, GError *
/* maybe console kit does not know about our session */
if (console->priv->proxy_session == NULL) {
- g_warning ("no ConsoleKit session");
+ g_set_error_literal (error, 1, 0, "no ConsoleKit session");
goto out;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]