[gnome-contacts] app: properly set default address book after
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts] app: properly set default address book after
- Date: Tue, 16 Sep 2014 17:25:07 +0000 (UTC)
commit be0903e9d63f2c9136caa9ffe569f8b358c89298
Author: Erick Pérez Castellanos <erick red gmail com>
Date: Tue Sep 16 13:19:17 2014 -0400
app: properly set default address book after
This commit depends on folks bug 731470.
Fixed: https://bugzilla.gnome.org/show_bug.cgi?id=705888
Fixed: https://bugzilla.gnome.org/show_bug.cgi?id=686687
src/contacts-app.vala | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/contacts-app.vala b/src/contacts-app.vala
index c1ca0c9..8d6a0e5 100644
--- a/src/contacts-app.vala
+++ b/src/contacts-app.vala
@@ -93,6 +93,9 @@ public class Contacts.App : Gtk.Application {
var e_store = acc.selected_store as Edsf.PersonaStore;
if (e_store != null) {
eds_source_registry.set_default_address_book (e_store.source);
+ var settings = new GLib.Settings ("org.freedesktop.folks");
+ settings.set_string ("primary-store",
+ "eds:%s".printf(e_store.id));
contacts_store.refresh ();
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]