[gnome-contacts] Make FakePersona not take store constructor argument
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts] Make FakePersona not take store constructor argument
- Date: Fri, 26 Aug 2011 10:43:25 +0000 (UTC)
commit 273c595f2f5450c7f1f904903c4c4ce5d95e5cd1
Author: Alexander Larsson <alexl redhat com>
Date: Fri Aug 26 11:15:02 2011 +0200
Make FakePersona not take store constructor argument
It really only works for primary store anyway.
src/contacts-contact.vala | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/contacts-contact.vala b/src/contacts-contact.vala
index 81611fe..9a2a359 100644
--- a/src/contacts-contact.vala
+++ b/src/contacts-contact.vala
@@ -902,7 +902,7 @@ public class Contacts.FakePersona : Persona {
if (primary_persona != null)
return null;
- return new FakePersona (contact, contact.store.aggregator.primary_store);
+ return new FakePersona (contact);
}
private const string[] _linkable_properties = {};
@@ -939,11 +939,11 @@ public class Contacts.FakePersona : Persona {
}
}
- public FakePersona (Contact contact, PersonaStore store) {
+ public FakePersona (Contact contact) {
Object (display_id: "display_id",
uid: "uid",
iid: "iid",
- store: store,
+ store: contact.store.aggregator.primary_store,
is_user: false);
this.contact = contact;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]