From e62a19357e8e3866d7ca07fdd128d8163765a80a Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 5 Apr 2010 11:32:26 -0400 Subject: [PATCH] Always emit changed signal when setting user photo With the new copying approach, we can't rely on the path to change... --- src/user.c | 14 +++++--------- 1 files changed, 5 insertions(+), 9 deletions(-) diff --git a/src/user.c b/src/user.c index 0eb3232..72ecd22 100644 --- a/src/user.c +++ b/src/user.c @@ -1353,18 +1353,14 @@ user_change_icon_file_authorized_cb (Daemon *daemon, filename = dest_path; } - if (g_strcmp0 (user->icon_file, filename) != 0) { - g_free (user->icon_file); - user->icon_file = g_strdup (filename); - - save_extra_data (user); + g_free (user->icon_file); + user->icon_file = filename; - g_signal_emit (user, signals[CHANGED], 0); + save_extra_data (user); - g_object_notify (G_OBJECT (user), "icon-file"); - } + g_signal_emit (user, signals[CHANGED], 0); - g_free (filename); + g_object_notify (G_OBJECT (user), "icon-file"); dbus_g_method_return (context); } -- 1.7.0.1