"
"
\n",
e_color_to_value ((GdkColor *)
e_mail_formatter_get_color (formatter, E_MAIL_FORMATTER_COLOR_FRAME)),
e_color_to_value ((GdkColor *)
e_mail_formatter_get_color (formatter, E_MAIL_FORMATTER_COLOR_CONTENT)),
e_color_to_value ((GdkColor *)
e_mail_formatter_get_color (formatter, E_MAIL_FORMATTER_COLOR_TEXT)));
camel_stream_write_string (stream, buffer->str, cancellable, NULL);
g_string_free (buffer, TRUE);
e_mail_formatter_format_text (
formatter, part, filtered_stream, cancellable);
camel_stream_flush (filtered_stream, cancellable, NULL);
g_object_unref (filtered_stream);
camel_stream_write_string (stream, "
", cancellable, NULL);
return TRUE;
}
static const gchar *
emfe_text_enriched_get_display_name (EMailFormatterExtension *extension)
{
return _("Richtext");
}
static const gchar *
emfe_text_enriched_get_description (EMailFormatterExtension *extension)
{
return _("Display part as enriched text");
}
static const gchar **
emfe_text_enriched_mime_types (EMailExtension *extension)
{
return formatter_mime_types;
}
static void
e_mail_formatter_text_enriched_class_init (EMailFormatterTextEnrichedClass *class)
{
}
static void
e_mail_formatter_formatter_extension_interace_init (EMailFormatterExtensionInterface *iface)
{
iface->format = emfe_text_enriched_format;
iface->get_display_name = emfe_text_enriched_get_display_name;
iface->get_description = emfe_text_enriched_get_description;
}
static void
e_mail_formatter_mail_extension_interface_init (EMailExtensionInterface *iface)
{
iface->mime_types = emfe_text_enriched_mime_types;
}
static void
e_mail_formatter_text_enriched_init (EMailFormatterTextEnriched *formatter)
{
}