=?utf-8?q?=5Bevolution-data-server=5D_Bug_659165_=E2=80=94_editing_eds_co?= =?utf-8?q?ntacts_that_has_an_avatar_fails?=
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Bug 659165 â editing eds contacts that has an avatar fails
- Date: Sat, 17 Sep 2011 09:19:15 +0000 (UTC)
commit 964f7a5fcdc0b93cfe72285e6dbb9d9fd7141d2c
Author: Philip Withnall <philip tecnocode co uk>
Date: Sat Sep 17 10:18:07 2011 +0100
Bug 659165 â editing eds contacts that has an avatar fails
Fix the propagation of avatar data for contacts across contact modifications
which don't edit the avatar data.
Closes: bgo#659165
.../backends/google/e-book-backend-google.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/addressbook/backends/google/e-book-backend-google.c b/addressbook/backends/google/e-book-backend-google.c
index 9ff375f..977ef7f 100644
--- a/addressbook/backends/google/e-book-backend-google.c
+++ b/addressbook/backends/google/e-book-backend-google.c
@@ -1683,7 +1683,10 @@ modify_contact_cb (GDataService *service,
* we can update the EContact with the photo data and ETag. */
switch (data->photo_operation) {
case LEAVE_PHOTO:
- /* Do nothing. */
+ /* Do nothing apart from copy the photo stolen from the old GDataContactsContact to the updated one we've just received from
+ * Google. */
+ g_object_set_data_full (G_OBJECT (new_contact), "photo", data->photo, (GDestroyNotify) e_contact_photo_free);
+ data->photo = NULL;
break;
case ADD_PHOTO:
case UPDATE_PHOTO:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]