diff options
Diffstat (limited to 'em-format/e-mail-formatter-quote-text-enriched.c')
-rw-r--r-- | em-format/e-mail-formatter-quote-text-enriched.c | 38 |
1 files changed, 10 insertions, 28 deletions
diff --git a/em-format/e-mail-formatter-quote-text-enriched.c b/em-format/e-mail-formatter-quote-text-enriched.c index ba991db2f4..fc7febb09a 100644 --- a/em-format/e-mail-formatter-quote-text-enriched.c +++ b/em-format/e-mail-formatter-quote-text-enriched.c @@ -30,25 +30,13 @@ #include <glib/gi18n-lib.h> #include <camel/camel.h> -typedef struct _EMailFormatterQuoteTextEnriched { - GObject parent; -} EMailFormatterQuoteTextEnriched; +typedef EMailFormatterExtension EMailFormatterQuoteTextEnriched; +typedef EMailFormatterExtensionClass EMailFormatterQuoteTextEnrichedClass; -typedef struct _EMailFormatterQuoteTextEnrichedClass { - GObjectClass parent_class; -} EMailFormatterQuoteTextEnrichedClass; - -static void e_mail_formatter_quote_formatter_extension_interace_init - (EMailFormatterExtensionInterface *iface); - -G_DEFINE_TYPE_EXTENDED ( +G_DEFINE_TYPE ( EMailFormatterQuoteTextEnriched, e_mail_formatter_quote_text_enriched, - G_TYPE_OBJECT, - 0, - G_IMPLEMENT_INTERFACE ( - E_TYPE_MAIL_FORMATTER_EXTENSION, - e_mail_formatter_quote_formatter_extension_interace_init)); + E_TYPE_MAIL_FORMATTER_EXTENSION) static const gchar *formatter_mime_types[] = { "text/enriched", @@ -106,21 +94,15 @@ emqfe_text_enriched_get_description (EMailFormatterExtension *extension) } static void -e_mail_formatter_quote_text_enriched_class_init (EMailFormatterQuoteTextEnrichedClass *class) +e_mail_formatter_quote_text_enriched_class_init (EMailFormatterExtensionClass *class) { + class->mime_types = formatter_mime_types; + class->format = emqfe_text_enriched_format; + class->get_display_name = emqfe_text_enriched_get_display_name; + class->get_description = emqfe_text_enriched_get_description; } static void -e_mail_formatter_quote_formatter_extension_interace_init (EMailFormatterExtensionInterface *iface) +e_mail_formatter_quote_text_enriched_init (EMailFormatterExtension *extension) { - iface->mime_types = formatter_mime_types; - iface->format = emqfe_text_enriched_format; - iface->get_display_name = emqfe_text_enriched_get_display_name; - iface->get_description = emqfe_text_enriched_get_description; -} - -static void -e_mail_formatter_quote_text_enriched_init (EMailFormatterQuoteTextEnriched *formatter) -{ - } |