summaryrefslogtreecommitdiff
path: root/mate-session/gsm-consolekit.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2012-11-14 02:15:43 -0800
committerStefano Karapetsas <[email protected]>2012-11-14 02:15:43 -0800
commit6b16710b19e25ddb05f5b99f48cd4bf03d46e56a (patch)
treef96d65ab4c9c2bbd8040e62f77a0bb9bc6ad9c74 /mate-session/gsm-consolekit.c
parent933f891732a533179682015e1d194a40293f6c9b (diff)
parentdee0e9ab8f63d1b022a7ac011a921db48acc1cd7 (diff)
downloadmate-session-manager-6b16710b19e25ddb05f5b99f48cd4bf03d46e56a.tar.bz2
mate-session-manager-6b16710b19e25ddb05f5b99f48cd4bf03d46e56a.tar.xz
Merge pull request #11 from sbalneav/master
All warnings fixed. Clean compile.
Diffstat (limited to 'mate-session/gsm-consolekit.c')
-rw-r--r--mate-session/gsm-consolekit.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/mate-session/gsm-consolekit.c b/mate-session/gsm-consolekit.c
index c5eadb0..e04ae76 100644
--- a/mate-session/gsm-consolekit.c
+++ b/mate-session/gsm-consolekit.c
@@ -791,6 +791,12 @@ gsm_consolekit_can_restart (GsmConsolekit *manager)
G_TYPE_INVALID,
G_TYPE_BOOLEAN, &can_restart,
G_TYPE_INVALID);
+ if (res == FALSE) {
+ g_warning ("Could not make DBUS call: %s",
+ error->message);
+ g_error_free (error);
+ return FALSE;
+ }
return can_restart;
}
@@ -819,6 +825,13 @@ gsm_consolekit_can_stop (GsmConsolekit *manager)
G_TYPE_BOOLEAN, &can_stop,
G_TYPE_INVALID);
+ if (res == FALSE) {
+ g_warning ("Could not make DBUS call: %s",
+ error->message);
+ g_error_free (error);
+ return FALSE;
+ }
+
return can_stop;
}