aboutsummaryrefslogtreecommitdiffstats
path: root/modules/vcard-inline
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-05-17 01:10:26 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-05-20 01:07:20 +0800
commitc025ffbb296501d2da8cba78aa6a14008055cf87 (patch)
tree1ef1bb4d02d699fc67e731e54bb1017852be4d83 /modules/vcard-inline
parentcd5a55f9812643109be6c2b0ed5d8f8ce655a4a9 (diff)
downloadgsoc2013-evolution-c025ffbb296501d2da8cba78aa6a14008055cf87.tar
gsoc2013-evolution-c025ffbb296501d2da8cba78aa6a14008055cf87.tar.gz
gsoc2013-evolution-c025ffbb296501d2da8cba78aa6a14008055cf87.tar.bz2
gsoc2013-evolution-c025ffbb296501d2da8cba78aa6a14008055cf87.tar.lz
gsoc2013-evolution-c025ffbb296501d2da8cba78aa6a14008055cf87.tar.xz
gsoc2013-evolution-c025ffbb296501d2da8cba78aa6a14008055cf87.tar.zst
gsoc2013-evolution-c025ffbb296501d2da8cba78aa6a14008055cf87.zip
Add e_mail_part_get_id().
Diffstat (limited to 'modules/vcard-inline')
-rw-r--r--modules/vcard-inline/e-mail-formatter-vcard-inline.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/modules/vcard-inline/e-mail-formatter-vcard-inline.c b/modules/vcard-inline/e-mail-formatter-vcard-inline.c
index f2ab3cc179..6baa818138 100644
--- a/modules/vcard-inline/e-mail-formatter-vcard-inline.c
+++ b/modules/vcard-inline/e-mail-formatter-vcard-inline.c
@@ -115,7 +115,7 @@ emfe_vcard_inline_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,
"formatter_default_charset", G_TYPE_STRING, default_charset,
"formatter_charset", G_TYPE_STRING, charset,
@@ -131,7 +131,8 @@ emfe_vcard_inline_format (EMailFormatterExtension *extension,
}
str = g_strdup_printf (
- "<div id=\"%s\">", part->id);
+ "<div id=\"%s\">",
+ e_mail_part_get_id (part));
camel_stream_write_string (stream, str, cancellable, NULL);
g_free (str);
@@ -161,8 +162,9 @@ emfe_vcard_inline_format (EMailFormatterExtension *extension,
"<iframe width=\"100%%\" height=\"auto\" frameborder=\"0\""
"src=\"%s\" name=\"%s\"></iframe>"
"</div>",
- part->id, access_key, html_label,
- uri, part->id);
+ e_mail_part_get_id (part),
+ access_key, html_label, uri,
+ e_mail_part_get_id (part));
camel_stream_write_string (stream, str, cancellable, NULL);
g_free (str);
g_free (html_label);