aboutsummaryrefslogtreecommitdiffstats
path: root/em-format/e-mail-formatter-extension.h
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2012-12-07 23:31:18 +0800
committerMatthew Barnes <mbarnes@redhat.com>2012-12-08 03:01:05 +0800
commitd9699159f010c612deca650c6ee336763d908954 (patch)
tree4839a8707065a7213d407b6124c3d9c486e456c8 /em-format/e-mail-formatter-extension.h
parent7885426c2bfc410838e9c49bfd350b04e0535435 (diff)
downloadgsoc2013-evolution-d9699159f010c612deca650c6ee336763d908954.tar
gsoc2013-evolution-d9699159f010c612deca650c6ee336763d908954.tar.gz
gsoc2013-evolution-d9699159f010c612deca650c6ee336763d908954.tar.bz2
gsoc2013-evolution-d9699159f010c612deca650c6ee336763d908954.tar.lz
gsoc2013-evolution-d9699159f010c612deca650c6ee336763d908954.tar.xz
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.h')
-rw-r--r--em-format/e-mail-formatter-extension.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/em-format/e-mail-formatter-extension.h b/em-format/e-mail-formatter-extension.h
index e03932b5d1..bdae859970 100644
--- a/em-format/e-mail-formatter-extension.h
+++ b/em-format/e-mail-formatter-extension.h
@@ -69,6 +69,9 @@ struct _EMailFormatterExtensionClass {
/* This is a short name for the extension (optional). */
const gchar *display_name;
+ /* This is a longer description of the extension (optional). */
+ const gchar *description;
+
/* This is a NULL-terminated array of supported MIME types.
* The MIME types can be exact (e.g. "text/plain") or use a
* wildcard (e.g. "text/ *"). */
@@ -84,9 +87,6 @@ struct _EMailFormatterExtensionClass {
EMailPartList *context,
EMailPart *part,
GHashTable *params);
- const gchar * (*get_description)
- (EMailFormatterExtension *extension);
-
};
GType e_mail_formatter_extension_get_type
@@ -105,8 +105,6 @@ GtkWidget * e_mail_formatter_extension_get_widget
EMailPartList *context,
EMailPart *part,
GHashTable *params);
-const gchar * e_mail_formatter_extension_get_description
- (EMailFormatterExtension *extension);
G_END_DECLS