aboutsummaryrefslogtreecommitdiffstats
path: root/modules/prefer-plain
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/prefer-plain
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/prefer-plain')
-rw-r--r--modules/prefer-plain/e-mail-display-popup-prefer-plain.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/modules/prefer-plain/e-mail-display-popup-prefer-plain.c b/modules/prefer-plain/e-mail-display-popup-prefer-plain.c
index 2be2532eda..9b7de92f53 100644
--- a/modules/prefer-plain/e-mail-display-popup-prefer-plain.c
+++ b/modules/prefer-plain/e-mail-display-popup-prefer-plain.c
@@ -316,13 +316,16 @@ mail_display_popup_prefer_plain_update_actions (EMailDisplayPopupExtension *exte
if (g_str_has_prefix (p->id, prefix) &&
(strstr (p->id, "text_html") || strstr (p->id, "plain_text"))) {
+ const gchar *p_id;
- pos = strstr (p->id, ".alternative-prefer-plain.");
+ p_id = e_mail_part_get_id (p);
+
+ pos = strstr (p_id, ".alternative-prefer-plain.");
if (is_text_plain) {
if (strstr (pos + ID_LEN, "text_html") != NULL) {
action_name = "show-text-html-part";
- set_text_html_id (pp_extension, p->id);
+ set_text_html_id (pp_extension, p_id);
set_text_plain_id (pp_extension, NULL);
break;
}
@@ -330,7 +333,7 @@ mail_display_popup_prefer_plain_update_actions (EMailDisplayPopupExtension *exte
if (strstr (pos + ID_LEN, "plain_text") != NULL) {
action_name = "show-plain-text-part";
set_text_html_id (pp_extension, NULL);
- set_text_plain_id (pp_extension, p->id);
+ set_text_plain_id (pp_extension, p_id);
break;
}
}