[gnome-contacts] Save the store in the Contact
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts] Save the store in the Contact
- Date: Thu, 30 Jun 2011 13:31:29 +0000 (UTC)
commit 3f97ea3f44716edd3f7911cd422d6c7102daaf63
Author: Alexander Larsson <alexl redhat com>
Date: Thu Jun 30 15:28:55 2011 +0200
Save the store in the Contact
src/contacts-contact.vala | 4 +++-
src/contacts-store.vala | 2 +-
2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/contacts-contact.vala b/src/contacts-contact.vala
index 6969730..2d62755 100644
--- a/src/contacts-contact.vala
+++ b/src/contacts-contact.vala
@@ -88,6 +88,7 @@ public class Contacts.ContactPresence : Grid {
public class Contacts.Contact : GLib.Object {
+ public Store store;
public PresenceType presence_type;
public string presence_message;
public bool is_phone;
@@ -154,7 +155,8 @@ public class Contacts.Contact : GLib.Object {
SignalHandler.disconnect_by_func (tp.contact, (void *)persona_notify_cb, this);
}
- public Contact(Individual i) {
+ public Contact (Store store, Individual i) {
+ this.store = store;
individual = i;
individual.set_data ("contact", this);
diff --git a/src/contacts-store.vala b/src/contacts-store.vala
index c61562a..dd45606 100644
--- a/src/contacts-store.vala
+++ b/src/contacts-store.vala
@@ -51,7 +51,7 @@ public class Contacts.Store {
this.remove (Contact.from_individual (i));
}
foreach (Individual i in added) {
- var c = new Contact (i);
+ var c = new Contact (this, i);
this.add (c);
}
});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]