Fix printing of empty pages when the selected part
[claws.git] / src / mimeview.c
index bb14a60ec5786f7622ba0847bf46532e7d4c8696..28dd069ca6ef7cce40f99f7d3adbe3d6ca7cdd6e 100644 (file)
@@ -1430,6 +1430,14 @@ static void update_signature_info(MimeView *mimeview, MimeInfo *selected)
        noticeview_show(mimeview->siginfoview);
 }
 
+void mimeview_show_part_as_text(MimeView *mimeview, MimeInfo *partinfo)
+{
+       cm_return_if_fail(mimeview != NULL);
+       cm_return_if_fail(partinfo != NULL);
+
+       mimeview_show_message_part(mimeview, partinfo);
+}
+
 static void mimeview_selected(GtkTreeSelection *selection, MimeView *mimeview)
 {
        GtkTreeView *ctree = GTK_TREE_VIEW(mimeview->ctree);