summaryrefslogtreecommitdiff
path: root/mate-session/gsm-manager.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2013-04-13 18:32:05 +0200
committerStefano Karapetsas <[email protected]>2013-04-13 18:32:05 +0200
commit7d85a1e6087caab688146a54891c2dd2c468b6f7 (patch)
tree055e9b546364679eba3397795755eb7672cffb02 /mate-session/gsm-manager.c
parentaca91616f1c9845d860768f0f4d321cfdc515c62 (diff)
downloadmate-session-manager-7d85a1e6087caab688146a54891c2dd2c468b6f7.tar.bz2
mate-session-manager-7d85a1e6087caab688146a54891c2dd2c468b6f7.tar.xz
Use synchronous DBus call to switch user in LightDM
Diffstat (limited to 'mate-session/gsm-manager.c')
-rw-r--r--mate-session/gsm-manager.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/mate-session/gsm-manager.c b/mate-session/gsm-manager.c
index 02758f5..d765322 100644
--- a/mate-session/gsm-manager.c
+++ b/mate-session/gsm-manager.c
@@ -1048,14 +1048,13 @@ manager_switch_user (GsmManager *manager)
NULL,
&error);
if (proxy != NULL) {
- g_dbus_proxy_call (proxy,
- "SwitchToGreeter",
- g_variant_new ("()"),
- G_DBUS_CALL_FLAGS_NONE,
- -1,
- NULL,
- NULL,
- NULL);
+ g_dbus_proxy_call_sync (proxy,
+ "SwitchToGreeter",
+ g_variant_new ("()"),
+ G_DBUS_CALL_FLAGS_NONE,
+ -1,
+ NULL,
+ NULL);
g_object_unref (proxy);
}
else {