[gnome-contacts] Add Contact.fetch_contact_info()
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts] Add Contact.fetch_contact_info()
- Date: Thu, 10 May 2012 11:56:17 +0000 (UTC)
commit 5f0a9b2b6923b662580296e308a505c0bd194313
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Mon Apr 30 13:42:57 2012 +0200
Add Contact.fetch_contact_info()
https://bugzilla.gnome.org/show_bug.cgi?id=674392
src/contacts-contact.vala | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/src/contacts-contact.vala b/src/contacts-contact.vala
index 27c2bf1..2376f32 100644
--- a/src/contacts-contact.vala
+++ b/src/contacts-contact.vala
@@ -1362,6 +1362,16 @@ public class Contacts.Contact : GLib.Object {
ulong id = this.changed.connect ( () => { callback(w); });
w.destroy.connect (() => { this.disconnect (id); });
}
+
+ public void fetch_contact_info () {
+ /* TODO: Ideally Folks should have API for this (#675131) */
+ foreach (var p in individual.personas) {
+ var tp = p as Tpf.Persona;
+ if (tp != null) {
+ tp.contact.request_contact_info_async(null);
+ }
+ }
+ }
}
public class Contacts.FakePersonaStore : PersonaStore {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]