[gdm/gnome-2-30] Pass proper object to GetUnixUser reply callback



commit 9b295490f6e779d6a3277b37424f9b66299ab14c
Author: Ray Strode <rstrode redhat com>
Date:   Fri Jun 25 16:39:31 2010 -0400

    Pass proper object to GetUnixUser reply callback
    
    I was passing the manager, instead of new session
    object in.

 gui/simple-greeter/gdm-user-manager.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/gui/simple-greeter/gdm-user-manager.c b/gui/simple-greeter/gdm-user-manager.c
index 7056577..e896264 100644
--- a/gui/simple-greeter/gdm-user-manager.c
+++ b/gui/simple-greeter/gdm-user-manager.c
@@ -906,18 +906,15 @@ on_get_unix_user_finished (DBusGProxy               *proxy,
 static void
 get_uid_for_new_session (GdmUserManagerNewSession *new_session)
 {
-        GdmUserManager *manager;
         DBusGProxyCall *call;
 
         g_assert (new_session->proxy != NULL);
 
-        manager = new_session->manager;
-
         call = dbus_g_proxy_begin_call (new_session->proxy,
                                         "GetUnixUser",
                                         (DBusGProxyCallNotify)
                                         on_get_unix_user_finished,
-                                        manager,
+                                        new_session,
                                         NULL,
                                         G_TYPE_INVALID);
         if (call == NULL) {



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