From d9699159f010c612deca650c6ee336763d908954 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Fri, 7 Dec 2012 10:31:18 -0500 Subject: 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. --- em-format/e-mail-formatter-source.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'em-format/e-mail-formatter-source.c') diff --git a/em-format/e-mail-formatter-source.c b/em-format/e-mail-formatter-source.c index aec6ea29c9..26e9d92d7b 100644 --- a/em-format/e-mail-formatter-source.c +++ b/em-format/e-mail-formatter-source.c @@ -121,19 +121,13 @@ emfe_source_format (EMailFormatterExtension *extension, return TRUE; } -static const gchar * -emfe_source_get_description (EMailFormatterExtension *extension) -{ - return _("Display source of a MIME part"); -} - static void e_mail_formatter_source_class_init (EMailFormatterExtensionClass *class) { class->display_name = _("Source"); + class->description = _("Display source of a MIME part"); class->mime_types = formatter_mime_types; class->format = emfe_source_format; - class->get_description = emfe_source_get_description; } static void -- cgit v1.2.3