[gdm/gnome-2-30] Only emit user change signals after is-loaded is true
- From: William Jon McCann <mccann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm/gnome-2-30] Only emit user change signals after is-loaded is true
- Date: Fri, 11 Jun 2010 01:51:55 +0000 (UTC)
commit 9b55b7ae8768d5a5d6ccbceacc8ef98d7517d9c3
Author: William Jon McCann <jmccann redhat com>
Date: Tue Jun 8 16:23:06 2010 -0400
Only emit user change signals after is-loaded is true
https://bugzilla.gnome.org/show_bug.cgi?id=621045
gui/simple-greeter/gdm-user-manager.c | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/gui/simple-greeter/gdm-user-manager.c b/gui/simple-greeter/gdm-user-manager.c
index ce9679a..b17e22b 100644
--- a/gui/simple-greeter/gdm-user-manager.c
+++ b/gui/simple-greeter/gdm-user-manager.c
@@ -431,6 +431,10 @@ on_user_sessions_changed (GdmUser *user,
{
guint nsessions;
+ if (! manager->priv->is_loaded) {
+ return;
+ }
+
nsessions = gdm_user_get_num_sessions (user);
g_debug ("GdmUserManager: sessions changed user=%s num=%d",
@@ -449,9 +453,10 @@ static void
on_user_changed (GdmUser *user,
GdmUserManager *manager)
{
- g_debug ("GdmUserManager: user changed");
-
- g_signal_emit (manager, signals[USER_CHANGED], 0, user);
+ if (manager->priv->is_loaded) {
+ g_debug ("GdmUserManager: user changed");
+ g_signal_emit (manager, signals[USER_CHANGED], 0, user);
+ }
}
static char *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]