From 4c05b9e925764a6035e3d0fcbfc1f0458d36f5d9 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Sun, 29 Aug 2010 10:44:16 -0400 Subject: Coding style and whitespace cleanup. --- em-format/em-format.c | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'em-format/em-format.c') diff --git a/em-format/em-format.c b/em-format/em-format.c index b82420ae7a..38a91b0955 100644 --- a/em-format/em-format.c +++ b/em-format/em-format.c @@ -1328,6 +1328,7 @@ 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; @@ -1376,8 +1377,10 @@ em_format_format_text (EMFormat *emf, max = -1; gconf = gconf_client_get_default (); - if (gconf_client_get_bool (gconf, "/apps/evolution/mail/display/force_message_limit", NULL)) { - max = gconf_client_get_int (gconf, "/apps/evolution/mail/display/message_text_part_limit", NULL); + 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); if (max == 0) max = -1; } @@ -2163,7 +2166,9 @@ emf_inlinepgp_encrypted (EMFormat *emf, static EMFormatHandler type_builtin_table[] = { #ifdef ENABLE_SMIME - { (gchar *) "application/x-pkcs7-mime", (EMFormatFunc)emf_application_xpkcs7mime, EM_FORMAT_HANDLER_INLINE_DISPOSITION }, + { (gchar *) "application/x-pkcs7-mime", + emf_application_xpkcs7mime, + EM_FORMAT_HANDLER_INLINE_DISPOSITION }, #endif { (gchar *) "application/mbox", emf_application_mbox, EM_FORMAT_HANDLER_INLINE }, { (gchar *) "multipart/alternative", emf_multipart_alternative }, @@ -2180,7 +2185,9 @@ static EMFormatHandler type_builtin_table[] = { /* Insert brokenly-named parts here */ #ifdef ENABLE_SMIME - { (gchar *) "application/pkcs7-mime", (EMFormatFunc)emf_application_xpkcs7mime, EM_FORMAT_HANDLER_INLINE_DISPOSITION }, + { (gchar *) "application/pkcs7-mime", + emf_application_xpkcs7mime, + EM_FORMAT_HANDLER_INLINE_DISPOSITION }, #endif /* internal types */ -- cgit v1.2.3