[gdm/display-configuration] Correct usage of ConsoleKit Manager methods "RemoveSeat" "SeatAdded" and Seat method "Unmanage"



commit 395488b3cef342f0962dcd1e00f89e002daf20bf
Author: Halton Huo <halton huo sun com>
Date:   Mon Aug 10 16:32:09 2009 +0800

    Correct usage of ConsoleKit Manager methods "RemoveSeat" "SeatAdded" and Seat method "Unmanage"

 daemon/gdm-local-display-factory.c |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/daemon/gdm-local-display-factory.c b/daemon/gdm-local-display-factory.c
index d8c2a98..5b01127 100644
--- a/daemon/gdm-local-display-factory.c
+++ b/daemon/gdm-local-display-factory.c
@@ -738,11 +738,10 @@ seat_remove_request (DBusGProxy             *seat_proxy,
 
         dbus_g_proxy_call_no_reply (seat_proxy,
                                     "Unmanage",
-                                    DBUS_TYPE_G_OBJECT_PATH, sid_to_remove,
                                     G_TYPE_INVALID,
                                     G_TYPE_INVALID);
 
-        dbus_g_proxy_call_no_reply (seat_proxy,
+        dbus_g_proxy_call_no_reply (factory->priv->proxy_ck,
                                     "RemoveSeat",
                                     DBUS_TYPE_G_OBJECT_PATH, sid_to_remove,
                                     G_TYPE_INVALID,
@@ -1056,9 +1055,14 @@ connect_to_ck (GdmLocalDisplayFactory *factory)
                 return FALSE;
         }
 
+        dbus_g_object_register_marshaller (gdm_marshal_VOID__STRING_STRING,
+                                           G_TYPE_NONE,
+                                           G_TYPE_STRING, G_TYPE_STRING,
+                                           G_TYPE_INVALID);
         dbus_g_proxy_add_signal (priv->proxy_ck,
                                  "SeatAdded",
-                                 DBUS_TYPE_G_OBJECT_PATH,
+                                 G_TYPE_STRING,
+                                 G_TYPE_STRING,
                                  G_TYPE_INVALID);
         dbus_g_proxy_connect_signal (priv->proxy_ck,
                                      "SeatAdded",



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]