aboutsummaryrefslogtreecommitdiffstats
path: root/modules/text-highlight
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2012-12-07 23:11:00 +0800
committerMatthew Barnes <mbarnes@redhat.com>2012-12-08 03:01:05 +0800
commit7885426c2bfc410838e9c49bfd350b04e0535435 (patch)
treede1e21b46f4cd0edda4ccf0341ec64e8117297a3 /modules/text-highlight
parent00b211b0f515d6b6d9147c1ca568d0c4b42af699 (diff)
downloadgsoc2013-evolution-7885426c2bfc410838e9c49bfd350b04e0535435.tar
gsoc2013-evolution-7885426c2bfc410838e9c49bfd350b04e0535435.tar.gz
gsoc2013-evolution-7885426c2bfc410838e9c49bfd350b04e0535435.tar.bz2
gsoc2013-evolution-7885426c2bfc410838e9c49bfd350b04e0535435.tar.lz
gsoc2013-evolution-7885426c2bfc410838e9c49bfd350b04e0535435.tar.xz
gsoc2013-evolution-7885426c2bfc410838e9c49bfd350b04e0535435.tar.zst
gsoc2013-evolution-7885426c2bfc410838e9c49bfd350b04e0535435.zip
EMailFormatterExtension: Convert get_display_name() to a string field.
Of the formatter extensions that provide a display name, they all use a static string. So we don't need an instance of the extension to obtain its display name. Just make it a string field in the class structure.
Diffstat (limited to 'modules/text-highlight')
-rw-r--r--modules/text-highlight/e-mail-formatter-text-highlight.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/modules/text-highlight/e-mail-formatter-text-highlight.c b/modules/text-highlight/e-mail-formatter-text-highlight.c
index f927eaf3a9..8d44135cbc 100644
--- a/modules/text-highlight/e-mail-formatter-text-highlight.c
+++ b/modules/text-highlight/e-mail-formatter-text-highlight.c
@@ -357,12 +357,6 @@ emfe_text_highlight_format (EMailFormatterExtension *extension,
}
static const gchar *
-emfe_text_highlight_get_display_name (EMailFormatterExtension *extension)
-{
- return _("Text Highlight");
-}
-
-static const gchar *
emfe_text_highlight_get_description (EMailFormatterExtension *extension)
{
return _("Syntax highlighting of mail parts");
@@ -371,9 +365,9 @@ emfe_text_highlight_get_description (EMailFormatterExtension *extension)
static void
e_mail_formatter_text_highlight_class_init (EMailFormatterExtensionClass *class)
{
+ class->display_name = _("Text Highlight");
class->mime_types = get_mime_types ();
class->format = emfe_text_highlight_format;
- class->get_display_name = emfe_text_highlight_get_display_name;
class->get_description = emfe_text_highlight_get_description;
}