[gdm] Emit changed signal whenever we do a GetAll call
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm] Emit changed signal whenever we do a GetAll call
- Date: Tue, 31 Aug 2010 18:28:04 +0000 (UTC)
commit 8f3588dcf2f1d7b5907c77bdf3d407e074f65b14
Author: Ray Strode <rstrode redhat com>
Date: Fri Aug 27 17:57:18 2010 -0400
Emit changed signal whenever we do a GetAll call
Previously we'd emit it after update_info, but at
that point no properties have been changed yet,
so its getting emitted prematurely.
gui/simple-greeter/gdm-user.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gui/simple-greeter/gdm-user.c b/gui/simple-greeter/gdm-user.c
index 037b7e7..de46329 100644
--- a/gui/simple-greeter/gdm-user.c
+++ b/gui/simple-greeter/gdm-user.c
@@ -877,6 +877,8 @@ on_get_all_finished (DBusGProxy *proxy,
g_hash_table_foreach (hash_table, (GHFunc) collect_props, user);
g_hash_table_unref (hash_table);
+ g_signal_emit (user, signals[CHANGED], 0);
+
out:
g_object_unref (proxy);
}
@@ -925,9 +927,7 @@ changed_handler (DBusGProxy *proxy,
{
GdmUser *user = GDM_USER (data);
- if (update_info (user)) {
- g_signal_emit (user, signals[CHANGED], 0);
- }
+ update_info (user);
}
GdmUser *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]