registry: Use correct signature for EndSessionResponse
authorMatthias Clasen <mclasen@redhat.com>
Fri, 1 Apr 2011 15:41:17 +0000 (11:41 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 1 Apr 2011 15:41:17 +0000 (11:41 -0400)
It turns out that using the wrong signature here adds a 30 second
wait to login/logout, when accessibility is turned on.
Thanks to Panu Matilainen for tracking this down.
https://bugzilla.gnome.org/show_bug.cgi?id=646403

registryd/registry-main.c

index 442b107..9dded9b 100644 (file)
@@ -107,7 +107,7 @@ end_session_response (gboolean is_okay, const gchar *reason)
                 reason = "";
 
         ret = g_dbus_proxy_call_sync (client_proxy, "EndSessionResponse",
-                                      g_variant_new ("(us)", is_okay, reason),
+                                      g_variant_new ("(bs)", is_okay, reason),
                                       0, 1000, NULL, &error);
 
         if (!ret) {