[folks] Don't unnecessarily push group changes down to Personas
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [folks] Don't unnecessarily push group changes down to Personas
- Date: Thu, 26 Aug 2010 21:20:19 +0000 (UTC)
commit 67db896d4d9eef20b4581ac1f4c34c21d3ad9bf6
Author: Philip Withnall <philip withnall collabora co uk>
Date: Wed Aug 25 17:02:53 2010 +0100
Don't unnecessarily push group changes down to Personas
The Individual.change_group() method should only be called in response to
user interaction, as it pushes the group change down to all the Individual's
Personas.
folks/individual.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/folks/individual.vala b/folks/individual.vala
index 301b522..4d9e9c5 100644
--- a/folks/individual.vala
+++ b/folks/individual.vala
@@ -190,6 +190,7 @@ public class Folks.Individual : Object,
set
{
+ this._groups = value;
this._persona_list.foreach ((p) =>
{
if (p is Groups && ((Persona) p).store.is_writeable == true)
@@ -240,7 +241,6 @@ public class Folks.Individual : Object,
private void persona_group_changed_cb (string group, bool is_member)
{
- this.change_group.begin (group, is_member);
this.update_groups ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]