aboutsummaryrefslogtreecommitdiffstats
path: root/em-format/em-format.c
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@gnome-db.org>2011-10-19 05:28:27 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-10-19 05:28:27 +0800
commit1b78f1e67460d8a35c3f49dd64fc36c5410881ec (patch)
treed932b90f665db7a1ef76f165386e373a1729406a /em-format/em-format.c
parentc3d83e74a902cb21da840a2f959f67f3c529034c (diff)
downloadgsoc2013-evolution-1b78f1e67460d8a35c3f49dd64fc36c5410881ec.tar.gz
gsoc2013-evolution-1b78f1e67460d8a35c3f49dd64fc36c5410881ec.tar.zst
gsoc2013-evolution-1b78f1e67460d8a35c3f49dd64fc36c5410881ec.zip
Migrate em-format* to GSettings
Diffstat (limited to 'em-format/em-format.c')
-rw-r--r--em-format/em-format.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/em-format/em-format.c b/em-format/em-format.c
index 40f9baa3d5..b83d39e6b9 100644
--- a/em-format/em-format.c
+++ b/em-format/em-format.c
@@ -1366,7 +1366,7 @@ em_format_format_text (EMFormat *emf,
const gchar *key;
gsize size;
gsize max;
- GConfClient *gconf;
+ GSettings *settings;
if (emf->charset) {
charset = emf->charset;
@@ -1411,15 +1411,14 @@ em_format_format_text (EMFormat *emf,
max = -1;
- gconf = gconf_client_get_default ();
- key = "/apps/evolution/mail/display/force_message_limit";
- if (gconf_client_get_bool (gconf, key, NULL)) {
+ settings = g_settings_new ("org.gnome.evolution.mail");
+ if (g_settings_get_boolean (settings, "force-message-limit")) {
key = "/apps/evolution/mail/display/message_text_part_limit";
- max = gconf_client_get_int (gconf, key, NULL);
+ max = g_settings_get_int (settings, "message-text-part-limit");
if (max == 0)
max = -1;
}
- g_object_unref (gconf);
+ g_object_unref (settings);
size = camel_data_wrapper_decode_to_stream_sync (
emf->mode == EM_FORMAT_MODE_SOURCE ?