From c025ffbb296501d2da8cba78aa6a14008055cf87 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Thu, 16 May 2013 13:10:26 -0400 Subject: Add e_mail_part_get_id(). --- modules/text-highlight/e-mail-formatter-text-highlight.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'modules/text-highlight') diff --git a/modules/text-highlight/e-mail-formatter-text-highlight.c b/modules/text-highlight/e-mail-formatter-text-highlight.c index 286e356c51..11fc546d74 100644 --- a/modules/text-highlight/e-mail-formatter-text-highlight.c +++ b/modules/text-highlight/e-mail-formatter-text-highlight.c @@ -313,7 +313,7 @@ emfe_text_highlight_format (EMailFormatterExtension *extension, uri = e_mail_part_build_uri ( folder, message_uid, - "part_id", G_TYPE_STRING, part->id, + "part_id", G_TYPE_STRING, e_mail_part_get_id (part), "mode", G_TYPE_INT, E_MAIL_FORMATTER_MODE_RAW, "__formatas", G_TYPE_STRING, syntax, "formatter_default_charset", G_TYPE_STRING, default_charset, @@ -330,7 +330,9 @@ emfe_text_highlight_format (EMailFormatterExtension *extension, " style=\"border: 1px solid #%06x; background-color: #%06x;\">" "" "", - part->id, part->id, uri, + e_mail_part_get_id (part), + e_mail_part_get_id (part), + uri, e_rgba_to_value ( e_mail_formatter_get_color ( formatter, E_MAIL_FORMATTER_COLOR_FRAME)), -- cgit v1.2.3