[folks] Folks.Individual: don't use is-writeable in change_avatar



commit 8859fa3011eef3acc57e3b0b23c30c2119b987aa
Author: Raul Gutierrez Segales <rgs collabora co uk>
Date:   Thu Sep 15 14:04:13 2011 +0100

    Folks.Individual: don't use is-writeable in change_avatar
    
    This is a follow-up for commit 96539acd, using PersonaStore.is_writeable
    is deprecated in favour of checking Persona.writeable_properties

 folks/individual.vala |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/folks/individual.vala b/folks/individual.vala
index b2581ed..6733446 100644
--- a/folks/individual.vala
+++ b/folks/individual.vala
@@ -180,8 +180,7 @@ public class Folks.Individual : Object,
       foreach (var p in this._persona_set)
         {
           var a = p as AvatarDetails;
-          if (a != null && p.store.is_writeable == true &&
-              "avatar" in p.writeable_properties)
+          if (a != null && "avatar" in p.writeable_properties)
             {
               try
                 {



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