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 /em-format/e-mail-formatter-extension.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 'em-format/e-mail-formatter-extension.c')
-rw-r--r-- | em-format/e-mail-formatter-extension.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/em-format/e-mail-formatter-extension.c b/em-format/e-mail-formatter-extension.c index 01764a796f..9390d77a15 100644 --- a/em-format/e-mail-formatter-extension.c +++ b/em-format/e-mail-formatter-extension.c @@ -138,24 +138,3 @@ e_mail_formatter_extension_get_widget (EMailFormatterExtension *extension, return widget; } -/** - * e_mail_formatter_extension_get_description: - * @extension: an #EMailFormatterExtension - * - * A virtual function reimplemented in all formatter extensions. It returns a - * longer description of capabilities of the extension. - * - * Returns: A (localized) string with description of the extension. - */ -const gchar * -e_mail_formatter_extension_get_description (EMailFormatterExtension *extension) -{ - EMailFormatterExtensionClass *class; - - g_return_val_if_fail (E_IS_MAIL_FORMATTER_EXTENSION (extension), NULL); - - class = E_MAIL_FORMATTER_EXTENSION_GET_CLASS (extension); - g_return_val_if_fail (class->get_description != NULL, NULL); - - return class->get_description (extension); -} |