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/itip-formatter/e-mail-formatter-itip.c | |
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/itip-formatter/e-mail-formatter-itip.c')
-rw-r--r-- | modules/itip-formatter/e-mail-formatter-itip.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/modules/itip-formatter/e-mail-formatter-itip.c b/modules/itip-formatter/e-mail-formatter-itip.c index 03101fb746..86132f4f7b 100644 --- a/modules/itip-formatter/e-mail-formatter-itip.c +++ b/modules/itip-formatter/e-mail-formatter-itip.c @@ -136,19 +136,13 @@ emfe_itip_format (EMailFormatterExtension *extension, return TRUE; } -static const gchar * -emfe_itip_get_description (EMailFormatterExtension *extension) -{ - return _("Display part as an invitation"); -} - static void e_mail_formatter_itip_class_init (EMailFormatterExtensionClass *class) { class->display_name = _("ITIP"); + class->description = _("Display part as an invitation"); class->mime_types = formatter_mime_types; class->format = emfe_itip_format; - class->get_description = emfe_itip_get_description; } static void |