diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-01-11 22:38:38 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-01-11 22:39:04 +0800 |
commit | 6a79322ff6417808416b3ebb183011e49ab7d66c (patch) | |
tree | cb06aa8c2a9bef0b770011231c362bdb357acb52 /mail | |
parent | 620089c784f6e3c3dc9ee605a5f8ce08de593aa2 (diff) | |
download | gsoc2013-evolution-6a79322ff6417808416b3ebb183011e49ab7d66c.tar gsoc2013-evolution-6a79322ff6417808416b3ebb183011e49ab7d66c.tar.gz gsoc2013-evolution-6a79322ff6417808416b3ebb183011e49ab7d66c.tar.bz2 gsoc2013-evolution-6a79322ff6417808416b3ebb183011e49ab7d66c.tar.lz gsoc2013-evolution-6a79322ff6417808416b3ebb183011e49ab7d66c.tar.xz gsoc2013-evolution-6a79322ff6417808416b3ebb183011e49ab7d66c.tar.zst gsoc2013-evolution-6a79322ff6417808416b3ebb183011e49ab7d66c.zip |
Reduce diff noise with webkit-composer branch.
Diffstat (limited to 'mail')
-rw-r--r-- | mail/em-utils.c | 10 | ||||
-rw-r--r-- | mail/em-utils.h | 8 |
2 files changed, 12 insertions, 6 deletions
diff --git a/mail/em-utils.c b/mail/em-utils.c index 3bb4b9f647..fc6568d1ea 100644 --- a/mail/em-utils.c +++ b/mail/em-utils.c @@ -1305,7 +1305,7 @@ em_utils_message_to_html (CamelSession *session, gtk_widget_get_style (GTK_WIDGET (window)), gtk_widget_get_state (GTK_WIDGET (window))); - if (!parts_list) { + if (parts_list == NULL) { GSettings *settings; gchar *charset; @@ -1356,7 +1356,7 @@ em_utils_message_to_html (CamelSession *session, while (!g_queue_is_empty (&queue)) e_mail_part_unref (g_queue_pop_head (&queue)); - if (validity_found) + if (validity_found != NULL) *validity_found = is_validity_found; e_mail_formatter_format_sync ( @@ -1364,14 +1364,14 @@ em_utils_message_to_html (CamelSession *session, E_MAIL_FORMATTER_MODE_PRINTING, NULL); g_object_unref (formatter); - if (hidden_text_html_part) + if (hidden_text_html_part != NULL) hidden_text_html_part->is_hidden = TRUE; g_object_unref (parts_list); - if (parser) + if (parser != NULL) g_object_unref (parser); - if (append && *append) + if (append != NULL && *append != '\0') camel_stream_write_string (mem, append, NULL, NULL); camel_stream_write (mem, "", 1, NULL, NULL); diff --git a/mail/em-utils.h b/mail/em-utils.h index db286eb55b..1fe83077a1 100644 --- a/mail/em-utils.h +++ b/mail/em-utils.h @@ -66,7 +66,13 @@ void em_utils_selection_get_urilist (GtkSelectionData *data, CamelFolder *folder EProxy * em_utils_get_proxy (void); /* FIXME: should this have an override charset? */ -gchar *em_utils_message_to_html (CamelSession *session, CamelMimeMessage *msg, const gchar *credits, guint32 flags, struct _EMailPartList *parts_list, const gchar *append, guint32 *validity_found); +gchar * em_utils_message_to_html (CamelSession *session, + CamelMimeMessage *msg, + const gchar *credits, + guint32 flags, + struct _EMailPartList *parts_list, + const gchar *append, + guint32 *validity_found); void em_utils_empty_trash (GtkWidget *parent, EMailSession *session); |