[gdm] Only emit user-added after is-loaded is set



commit e0841215ccdbba5e1dd6b37dee6e09910229f0e9
Author: William Jon McCann <jmccann redhat com>
Date:   Tue Jun 8 14:40:33 2010 -0400

    Only emit user-added after is-loaded is set
    
    user-added and removed signals should be considered deltas on the
    user list available when is-loaded becomes true.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=620908

 gui/simple-greeter/gdm-user-manager.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gui/simple-greeter/gdm-user-manager.c b/gui/simple-greeter/gdm-user-manager.c
index a381643..949d7bd 100644
--- a/gui/simple-greeter/gdm-user-manager.c
+++ b/gui/simple-greeter/gdm-user-manager.c
@@ -775,7 +775,9 @@ add_user (GdmUserManager *manager,
                              g_strdup (gdm_user_get_user_name (user)),
                              g_object_ref (user));
 
-        g_signal_emit (manager, signals[USER_ADDED], 0, user);
+        if (manager->priv->is_loaded) {
+                g_signal_emit (manager, signals[USER_ADDED], 0, user);
+        }
 }
 
 static GdmUser *



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