aboutsummaryrefslogtreecommitdiffstats
path: root/em-format/e-mail-formatter-quote-text-html.c
diff options
context:
space:
mode:
Diffstat (limited to 'em-format/e-mail-formatter-quote-text-html.c')
-rw-r--r--em-format/e-mail-formatter-quote-text-html.c38
1 files changed, 10 insertions, 28 deletions
diff --git a/em-format/e-mail-formatter-quote-text-html.c b/em-format/e-mail-formatter-quote-text-html.c
index bbc81905a1..84425ac8d3 100644
--- a/em-format/e-mail-formatter-quote-text-html.c
+++ b/em-format/e-mail-formatter-quote-text-html.c
@@ -33,25 +33,13 @@
#include <string.h>
-typedef struct _EMailFormatterQuoteTextHTML {
- GObject parent;
-} EMailFormatterQuoteTextHTML;
+typedef EMailFormatterExtension EMailFormatterQuoteTextHTML;
+typedef EMailFormatterExtensionClass EMailFormatterQuoteTextHTMLClass;
-typedef struct _EMailFormatterQuoteTextHTMLClass {
- GObjectClass parent_class;
-} EMailFormatterQuoteTextHTMLClass;
-
-static void e_mail_formatter_quote_formatter_extension_interface_init
- (EMailFormatterExtensionInterface *iface);
-
-G_DEFINE_TYPE_EXTENDED (
+G_DEFINE_TYPE (
EMailFormatterQuoteTextHTML,
e_mail_formatter_quote_text_html,
- G_TYPE_OBJECT,
- 0,
- G_IMPLEMENT_INTERFACE (
- E_TYPE_MAIL_FORMATTER_EXTENSION,
- e_mail_formatter_quote_formatter_extension_interface_init));
+ E_TYPE_MAIL_FORMATTER_EXTENSION)
static const gchar *formatter_mime_types[] = {
"text/html",
@@ -109,21 +97,15 @@ emqfe_text_html_get_description (EMailFormatterExtension *extension)
}
static void
-e_mail_formatter_quote_text_html_class_init (EMailFormatterQuoteTextHTMLClass *class)
+e_mail_formatter_quote_text_html_class_init (EMailFormatterExtensionClass *class)
{
+ class->mime_types = formatter_mime_types;
+ class->format = emqfe_text_html_format;
+ class->get_display_name = emqfe_text_html_get_display_name;
+ class->get_description = emqfe_text_html_get_description;
}
static void
-e_mail_formatter_quote_formatter_extension_interface_init (EMailFormatterExtensionInterface *iface)
+e_mail_formatter_quote_text_html_init (EMailFormatterExtension *extension)
{
- iface->mime_types = formatter_mime_types;
- iface->format = emqfe_text_html_format;
- iface->get_display_name = emqfe_text_html_get_display_name;
- iface->get_description = emqfe_text_html_get_description;
-}
-
-static void
-e_mail_formatter_quote_text_html_init (EMailFormatterQuoteTextHTML *formatter)
-{
-
}