diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2012-12-07 23:31:18 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2012-12-08 03:01:05 +0800 |
commit | d9699159f010c612deca650c6ee336763d908954 (patch) | |
tree | 4839a8707065a7213d407b6124c3d9c486e456c8 /modules/text-highlight | |
parent | 7885426c2bfc410838e9c49bfd350b04e0535435 (diff) | |
download | gsoc2013-evolution-d9699159f010c612deca650c6ee336763d908954.tar.gz gsoc2013-evolution-d9699159f010c612deca650c6ee336763d908954.tar.zst gsoc2013-evolution-d9699159f010c612deca650c6ee336763d908954.zip |
EMailFormatterExtension: Convert get_description() to a string field.
Of the formatter extensions that provide a description, they all use a
static string. So we don't need an instance of the extension to obtain
its description. 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.c | 8 |
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 8d44135cbc..fc5ca1d482 100644 --- a/modules/text-highlight/e-mail-formatter-text-highlight.c +++ b/modules/text-highlight/e-mail-formatter-text-highlight.c @@ -356,19 +356,13 @@ emfe_text_highlight_format (EMailFormatterExtension *extension, return TRUE; } -static const gchar * -emfe_text_highlight_get_description (EMailFormatterExtension *extension) -{ - return _("Syntax highlighting of mail parts"); -} - static void e_mail_formatter_text_highlight_class_init (EMailFormatterExtensionClass *class) { class->display_name = _("Text Highlight"); + class->description = _("Syntax highlighting of mail parts"); class->mime_types = get_mime_types (); class->format = emfe_text_highlight_format; - class->get_description = emfe_text_highlight_get_description; } static void |