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-quote-text-plain.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'em-format/e-mail-formatter-quote-text-plain.c') diff --git a/em-format/e-mail-formatter-quote-text-plain.c b/em-format/e-mail-formatter-quote-text-plain.c index 9ac12b33a0..8c7e369814 100644 --- a/em-format/e-mail-formatter-quote-text-plain.c +++ b/em-format/e-mail-formatter-quote-text-plain.c @@ -103,19 +103,13 @@ emqfe_text_plain_format (EMailFormatterExtension *extension, return TRUE; } -static const gchar * -emqfe_text_plain_get_description (EMailFormatterExtension *extension) -{ - return _("Format part as plain text"); -} - static void e_mail_formatter_quote_text_plain_class_init (EMailFormatterExtensionClass *class) { class->display_name = _("Plain Text"); + class->description = _("Format part as plain text"); class->mime_types = formatter_mime_types; class->format = emqfe_text_plain_format; - class->get_description = emqfe_text_plain_get_description; } static void -- cgit v1.2.3