summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiels De Graef <nielsdegraef@gmail.com>2017-07-18 10:31:54 +0200
committerNiels De Graef <nielsdegraef@gmail.com>2017-07-18 10:36:43 +0200
commit9d89ccf1a16eeef418de749fd2e56ef1542b1e3f (patch)
tree98c3c0e21b39a68fc4ba5c87e0dfbf2caba39b5e
parent37669492306b1ab52459f0d5ea97a2d046c2792a (diff)
downloadgnome-contacts-9d89ccf1a16eeef418de749fd2e56ef1542b1e3f.tar.gz
Bump minimal version telepathy-glib to 0.22.
Also removed a deprecated function TelepathyGlib.AccountManager.get_valid_accounts().
-rw-r--r--configure.ac2
-rw-r--r--src/contacts-store.vala5
2 files changed, 3 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac
index 27c5d32..f983200 100644
--- a/configure.ac
+++ b/configure.ac
@@ -32,7 +32,7 @@ pkg_modules="gtk+-3.0 >= 3.20.0
folks >= 0.11.4
folks-telepathy
folks-eds
- telepathy-glib >= 0.17.5
+ telepathy-glib >= 0.22.0
libebook-1.2 >= 3.13.90
libedataserver-1.2 >= 3.13.90
libedataserverui-1.2 >= 3.13.90
diff --git a/src/contacts-store.vala b/src/contacts-store.vala
index b38fd79..f841f2f 100644
--- a/src/contacts-store.vala
+++ b/src/contacts-store.vala
@@ -328,9 +328,8 @@ public class Contacts.Store : GLib.Object {
account_manager.account_enabled.connect (this.check_account_caps);
account_manager.account_disabled.connect (this.check_account_caps);
- foreach (var account in account_manager.get_valid_accounts ()) {
- yield this.check_account_caps (account);
- }
+ foreach (var account in account_manager.dup_valid_accounts ())
+ yield this.check_account_caps (account);
} catch (GLib.Error e) {
warning ("Unable to check accounts caps %s", e.message);
}