[gnome-maps/wip/contacts] test contacts
- From: Jonas Danielsson <jonasdn src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/contacts] test contacts
- Date: Thu, 4 Dec 2014 08:10:57 +0000 (UTC)
commit 055adb71196c5f76c165c44b4530f86f2ecb0e7c
Author: Jonas Danielsson <jonas threetimestwo org>
Date: Thu Dec 4 03:10:35 2014 -0500
test contacts
src/application.js | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/application.js b/src/application.js
index 9315d30..3a758dc 100644
--- a/src/application.js
+++ b/src/application.js
@@ -34,6 +34,7 @@ const Format = imports.format;
const Geoclue = imports.geoclue;
const GeocodeService = imports.geocodeService;
const MainWindow = imports.mainWindow;
+const MapsC = imports.gi.MapsC;
const NotificationManager = imports.notificationManager;
const Path = imports.path;
const PlaceStore = imports.placeStore;
@@ -105,6 +106,13 @@ const Application = new Lang.Class({
placeStore = new PlaceStore.PlaceStore();
try {
placeStore.load();
+
+ this._contacts = new MapsC.Contacts();
+ this._contacts.load(function(contacts) {
+ contacts.get_list().forEach(function(contact) {
+ log('Contact: ' + contact.name);
+ });
+ });
} catch (e) {
log('Failed to parse Maps places file, ' +
'subsequent writes will overwrite the file!');
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]