[folks] Don't synchronise favourite status between Personas
- From: Travis Reitter <treitter src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [folks] Don't synchronise favourite status between Personas
- Date: Tue, 10 Aug 2010 23:14:53 +0000 (UTC)
commit 4e3ec60588f7f731d23f5ea4de328b376a25cf52
Author: Philip Withnall <philip withnall collabora co uk>
Date: Mon Aug 9 17:11:59 2010 +0100
Don't synchronise favourite status between Personas
folks/individual.vala | 9 +--------
1 files changed, 1 insertions(+), 8 deletions(-)
---
diff --git a/folks/individual.vala b/folks/individual.vala
index 09bd864..1a6806a 100644
--- a/folks/individual.vala
+++ b/folks/individual.vala
@@ -102,16 +102,11 @@ public class Folks.Individual : Object,
*
* This property is `true` if any of this Individual's { link Persona}s are
* favourites).
- *
- * When set, the value is propagated to all of this Individual's
- * { link Persona}s.
*/
public bool is_favourite
{
get { return this._is_favourite; }
- /* Propagate the new favourite status to every Persona, but only if it's
- * changed. */
set
{
if (this._is_favourite == value)
@@ -120,7 +115,7 @@ public class Folks.Individual : Object,
this._is_favourite = value;
this._personas.foreach ((p) =>
{
- if (p is Favourite)
+ if (p is Favourite && ((Persona) p).store.is_writeable == true)
((Favourite) p).is_favourite = value;
});
}
@@ -133,8 +128,6 @@ public class Folks.Individual : Object,
{
get { return this._groups; }
- /* Propagate the list of new groups to every Persona in the individual
- * which implements the Groups interface */
set
{
this._personas.foreach ((p) =>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]