From 7885426c2bfc410838e9c49bfd350b04e0535435 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Fri, 7 Dec 2012 10:11:00 -0500 Subject: EMailFormatterExtension: Convert get_display_name() to a string field. Of the formatter extensions that provide a display name, they all use a static string. So we don't need an instance of the extension to obtain its display name. Just make it a string field in the class structure. --- em-format/e-mail-formatter-extension.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'em-format/e-mail-formatter-extension.h') diff --git a/em-format/e-mail-formatter-extension.h b/em-format/e-mail-formatter-extension.h index 9111ad85f3..e03932b5d1 100644 --- a/em-format/e-mail-formatter-extension.h +++ b/em-format/e-mail-formatter-extension.h @@ -66,6 +66,9 @@ struct _EMailFormatterExtension { struct _EMailFormatterExtensionClass { GObjectClass parent_class; + /* This is a short name for the extension (optional). */ + const gchar *display_name; + /* 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/ *"). */ @@ -81,8 +84,6 @@ struct _EMailFormatterExtensionClass { EMailPartList *context, EMailPart *part, GHashTable *params); - const gchar * (*get_display_name) - (EMailFormatterExtension *extension); const gchar * (*get_description) (EMailFormatterExtension *extension); @@ -104,8 +105,6 @@ GtkWidget * e_mail_formatter_extension_get_widget EMailPartList *context, EMailPart *part, GHashTable *params); -const gchar * e_mail_formatter_extension_get_display_name - (EMailFormatterExtension *extension); const gchar * e_mail_formatter_extension_get_description (EMailFormatterExtension *extension); -- cgit