aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-09-24 11:12:56 -0500
committerTed Gould <ted@canonical.com>2009-09-24 11:12:56 -0500
commita151d8637279752a907f76ca729c1695d3420a41 (patch)
treede660de6bf513183a9cb95edeae3e18d1389c209 /src
parente94767722dc9204bf00e845c4cb94400a9743cac (diff)
downloadayatana-indicator-session-a151d8637279752a907f76ca729c1695d3420a41.tar.gz
ayatana-indicator-session-a151d8637279752a907f76ca729c1695d3420a41.tar.bz2
ayatana-indicator-session-a151d8637279752a907f76ca729c1695d3420a41.zip
Ah, truth, you got me again! Never will I trust you.
Diffstat (limited to 'src')
-rw-r--r--src/session-service.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/session-service.c b/src/session-service.c
index b1a6920..0242b17 100644
--- a/src/session-service.c
+++ b/src/session-service.c
@@ -84,10 +84,12 @@ gdm_settings_change (DBusGProxy * proxy, const gchar * value, const gchar * old,
static void
gdm_get_autologin (DBusGProxy * proxy, DBusGProxyCall * call, gpointer data)
{
+ GError * error = NULL;
gchar * value = NULL;
- if (dbus_g_proxy_end_call(proxy, call, NULL, G_TYPE_STRING, &value, G_TYPE_INVALID)) {
- g_warning("Unable to get autologin setting.");
+ if (!dbus_g_proxy_end_call(proxy, call, &error, G_TYPE_STRING, &value, G_TYPE_INVALID)) {
+ g_warning("Unable to get autologin setting: %s", error != NULL ? error->message : "null");
+ g_error_free(error);
return;
}