[gdm] user-manager: maybe set is loaded ListCachedUsers



commit efda830b8b978b96cd6a5923b3c1066250a31ac3
Author: Ray Strode <rstrode redhat com>
Date:   Mon Dec 6 10:46:28 2010 -0500

    user-manager: maybe set is loaded ListCachedUsers
    
    This is another asynchronous fix, needed to make sure
    the race of competing conditions properly end up with
    a loaded user.

 gui/simple-greeter/gdm-user-manager.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gui/simple-greeter/gdm-user-manager.c b/gui/simple-greeter/gdm-user-manager.c
index 6705acc..c631989 100644
--- a/gui/simple-greeter/gdm-user-manager.c
+++ b/gui/simple-greeter/gdm-user-manager.c
@@ -1198,6 +1198,8 @@ on_list_cached_users_finished (DBusGProxy     *proxy,
                 return;
         }
 
+        maybe_set_is_loaded (manager);
+
         g_ptr_array_foreach (paths, (GFunc)add_new_user_for_object_path, manager);
 
         g_ptr_array_foreach (paths, (GFunc)g_free, NULL);



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