From 8663b54cae296883452850f3baad6d4cbc92e220 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20Vr=C3=A1til?= Date: Wed, 25 Jul 2012 11:29:22 +0200 Subject: Highlighting of text parts and source codes This adds 'Format as' submenu to the preview pane context menu. The submenu is available only for text/plain parts or parts with a source code (we support about 40 various types). Using the 'highlight' utility, the formatter processes the part and highlights the source code it contains. (discussion in bug #680026) --- modules/text-highlight/evolution-module-text-highlight.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'modules/text-highlight/evolution-module-text-highlight.c') diff --git a/modules/text-highlight/evolution-module-text-highlight.c b/modules/text-highlight/evolution-module-text-highlight.c index de6e469bde..78c3c4dcf5 100644 --- a/modules/text-highlight/evolution-module-text-highlight.c +++ b/modules/text-highlight/evolution-module-text-highlight.c @@ -16,7 +16,9 @@ * */ -#include "text-highlight.h" +#include "e-mail-parser-text-highlight.h" +#include "e-mail-formatter-text-highlight.h" +#include "e-mail-display-popup-text-highlight.h" #include @@ -28,8 +30,9 @@ G_MODULE_EXPORT void e_module_load (GTypeModule *type_module) { /* Register dynamically loaded types. */ - + e_mail_parser_text_highlight_type_register (type_module); e_mail_formatter_text_highlight_type_register (type_module); + e_mail_display_popup_text_highlight_type_register (type_module); } G_MODULE_EXPORT void -- cgit v1.2.3