[gdm] Don't emit 'user-removed' if list isn't loaded
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm] Don't emit 'user-removed' if list isn't loaded
- Date: Tue, 31 Aug 2010 18:28:24 +0000 (UTC)
commit 91f8593e5d259f7e6b32f1afa29fa49dffa5f21a
Author: Ray Strode <rstrode redhat com>
Date: Tue Aug 31 14:07:46 2010 -0400
Don't emit 'user-removed' if list isn't loaded
We don't want to emit add or removed signals before
loading.
gui/simple-greeter/gdm-user-manager.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gui/simple-greeter/gdm-user-manager.c b/gui/simple-greeter/gdm-user-manager.c
index 4ff850e..ddb6070 100644
--- a/gui/simple-greeter/gdm-user-manager.c
+++ b/gui/simple-greeter/gdm-user-manager.c
@@ -750,7 +750,10 @@ remove_user (GdmUserManager *manager,
g_hash_table_remove (manager->priv->users_by_object_path, gdm_user_get_object_path (user));
}
g_hash_table_remove (manager->priv->users_by_name, gdm_user_get_user_name (user));
- g_signal_emit (manager, signals[USER_REMOVED], 0, user);
+
+ if (manager->priv->is_loaded) {
+ g_signal_emit (manager, signals[USER_REMOVED], 0, user);
+ }
g_object_unref (user);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]