diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-11-23 09:48:44 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2011-11-23 09:48:44 +0800 |
commit | 9918361aef9ad1360a0ed3a240cc58d6cd9e30f8 (patch) | |
tree | 50bf24934b5ab3fefcc27913d1855a27c75e6d40 /em-format/em-format.c | |
parent | fa1bb9a17e11cf12ce02d9b49bba2753f6020ea0 (diff) | |
parent | e64d6fe05c30c2cc1d7625a202afba3ba2da07cd (diff) | |
download | gsoc2013-evolution-9918361aef9ad1360a0ed3a240cc58d6cd9e30f8.tar gsoc2013-evolution-9918361aef9ad1360a0ed3a240cc58d6cd9e30f8.tar.gz gsoc2013-evolution-9918361aef9ad1360a0ed3a240cc58d6cd9e30f8.tar.bz2 gsoc2013-evolution-9918361aef9ad1360a0ed3a240cc58d6cd9e30f8.tar.lz gsoc2013-evolution-9918361aef9ad1360a0ed3a240cc58d6cd9e30f8.tar.xz gsoc2013-evolution-9918361aef9ad1360a0ed3a240cc58d6cd9e30f8.tar.zst gsoc2013-evolution-9918361aef9ad1360a0ed3a240cc58d6cd9e30f8.zip |
Merge branch 'wip/gsettings'
Diffstat (limited to 'em-format/em-format.c')
-rw-r--r-- | em-format/em-format.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/em-format/em-format.c b/em-format/em-format.c index 40f9baa3d5..4647a70a79 100644 --- a/em-format/em-format.c +++ b/em-format/em-format.c @@ -1363,10 +1363,9 @@ em_format_format_text (EMFormat *emf, const gchar *charset = NULL; CamelMimeFilterWindows *windows = NULL; CamelStream *mem_stream = NULL; - const gchar *key; gsize size; gsize max; - GConfClient *gconf; + GSettings *settings; if (emf->charset) { charset = emf->charset; @@ -1411,15 +1410,13 @@ 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)) { - key = "/apps/evolution/mail/display/message_text_part_limit"; - max = gconf_client_get_int (gconf, key, NULL); + settings = g_settings_new ("org.gnome.evolution.mail"); + if (g_settings_get_boolean (settings, "force-message-limit")) { + 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 ? |