[gnome-contacts] Update avatar on existing personas if possible



commit b29376971dcb7c0068478f972a97e8881348283d
Author: Alexander Larsson <alexl redhat com>
Date:   Wed Aug 31 11:16:03 2011 +0200

    Update avatar on existing personas if possible
    
    We don't want to add a local persona unnecessarily

 src/contacts-contact-pane.vala |   10 +++-------
 1 files changed, 3 insertions(+), 7 deletions(-)
---
diff --git a/src/contacts-contact-pane.vala b/src/contacts-contact-pane.vala
index c4f218a..281a050 100644
--- a/src/contacts-contact-pane.vala
+++ b/src/contacts-contact-pane.vala
@@ -911,13 +911,9 @@ public class Contacts.ContactPane : Grid {
     Icon icon = menu.get_data<Icon> ("source-icon");
     Value v = Value (icon.get_type ());
     v.set_object (icon);
-    Persona? primary_persona = selected_contact.find_primary_persona ();
-    if (primary_persona == null)
-      primary_persona = new FakePersona (selected_contact);
-
-    set_persona_property.begin (primary_persona,
-				"avatar", v, () => {
-				});
+    set_individual_property.begin (selected_contact,
+				   "avatar", v, () => {
+				   });
   }
 
   private Menu avatar_menu (Contact contact) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]