aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@gnome-db.org>2011-10-13 23:00:14 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-10-13 23:00:14 +0800
commitb436b8468346c384edc6bde0f24b2ac0ce657e00 (patch)
treec7ffb256666864a66742c1edc349a4f2150f382f /addressbook
parentd4e8e2f809d4da7dd5ac0b53a7900e5bd39777f9 (diff)
downloadgsoc2013-evolution-b436b8468346c384edc6bde0f24b2ac0ce657e00.tar
gsoc2013-evolution-b436b8468346c384edc6bde0f24b2ac0ce657e00.tar.gz
gsoc2013-evolution-b436b8468346c384edc6bde0f24b2ac0ce657e00.tar.bz2
gsoc2013-evolution-b436b8468346c384edc6bde0f24b2ac0ce657e00.tar.lz
gsoc2013-evolution-b436b8468346c384edc6bde0f24b2ac0ce657e00.tar.xz
gsoc2013-evolution-b436b8468346c384edc6bde0f24b2ac0ce657e00.tar.zst
gsoc2013-evolution-b436b8468346c384edc6bde0f24b2ac0ce657e00.zip
Migrate Contact Editor to GSettings
Diffstat (limited to 'addressbook')
-rw-r--r--addressbook/gui/contact-editor/e-contact-editor.c18
1 files changed, 4 insertions, 14 deletions
diff --git a/addressbook/gui/contact-editor/e-contact-editor.c b/addressbook/gui/contact-editor/e-contact-editor.c
index 28b5b636fe..9ad6fc0612 100644
--- a/addressbook/gui/contact-editor/e-contact-editor.c
+++ b/addressbook/gui/contact-editor/e-contact-editor.c
@@ -2302,26 +2302,16 @@ set_address_label (EContact *contact,
{
gchar *address_label = NULL;
gboolean format_address;
- GConfClient *client;
- GConfValue *value;
+ GSettings *settings;
if (!address) {
e_contact_set (contact, field, NULL);
return;
}
-
- client = gconf_client_get_default ();
- value = gconf_client_get (client,
- "/apps/evolution/addressbook/display/address_formatting", NULL);
- g_object_unref (client);
-
- if (value) {
- format_address = gconf_value_get_bool (value);
- gconf_value_free (value);
- } else {
- format_address = TRUE;
- }
+ settings = g_settings_new ("org.gnome.evolution.addressbook");
+ format_address = g_settings_get_boolean (settings, "address-formatting");
+ g_object_unref (settings);
if (format_address) {
address_label = eab_format_address (contact,