[evolution] e_mail_formatter_quote_base_init(): Register internal extension types.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] e_mail_formatter_quote_base_init(): Register internal extension types.
- Date: Fri, 7 Dec 2012 22:50:14 +0000 (UTC)
commit e1a4e302ae44223adc6d3f45a13f920ec04ebe65
Author: Matthew Barnes <mbarnes redhat com>
Date: Fri Dec 7 15:02:23 2012 -0500
e_mail_formatter_quote_base_init(): Register internal extension types.
em-format/e-mail-formatter-quote.c | 25 +++++++++++++++++++++----
1 files changed, 21 insertions(+), 4 deletions(-)
---
diff --git a/em-format/e-mail-formatter-quote.c b/em-format/e-mail-formatter-quote.c
index 3cd0121..f6ff5e3 100644
--- a/em-format/e-mail-formatter-quote.c
+++ b/em-format/e-mail-formatter-quote.c
@@ -21,7 +21,6 @@
#include <camel/camel.h>
#include "e-mail-formatter-extension.h"
-#include "e-mail-format-extensions.h"
#include "e-mail-part.h"
#include "e-mail-part-attachment.h"
#include "e-mail-part-utils.h"
@@ -30,14 +29,24 @@
#include <gdk/gdk.h>
#include <glib/gi18n.h>
+#define E_MAIL_FORMATTER_QUOTE_GET_PRIVATE(obj) \
+ (G_TYPE_INSTANCE_GET_PRIVATE \
+ ((obj), E_TYPE_MAIL_FORMATTER_QUOTE, EMailFormatterQuotePrivate))
+
struct _EMailFormatterQuotePrivate {
gchar *credits;
EMailFormatterQuoteFlags flags;
};
-#define E_MAIL_FORMATTER_QUOTE_GET_PRIVATE(obj) \
- (G_TYPE_INSTANCE_GET_PRIVATE \
- ((obj), E_TYPE_MAIL_FORMATTER_QUOTE, EMailFormatterQuotePrivate))
+/* internal formatter extensions */
+GType e_mail_formatter_quote_attachment_get_type (void);
+GType e_mail_formatter_quote_headers_get_type (void);
+GType e_mail_formatter_quote_message_rfc822_get_type (void);
+GType e_mail_formatter_quote_text_enriched_get_type (void);
+GType e_mail_formatter_quote_text_html_get_type (void);
+GType e_mail_formatter_quote_text_plain_get_type (void);
+
+void e_mail_formatter_quote_internal_extensions_load (EMailExtensionRegistry *ereg);
static gpointer e_mail_formatter_quote_parent_class = 0;
@@ -153,6 +162,14 @@ e_mail_formatter_quote_finalize (GObject *object)
static void
e_mail_formatter_quote_base_init (EMailFormatterQuoteClass *class)
{
+ /* Register internal extensions. */
+ g_type_ensure (e_mail_formatter_quote_attachment_get_type ());
+ g_type_ensure (e_mail_formatter_quote_headers_get_type ());
+ g_type_ensure (e_mail_formatter_quote_message_rfc822_get_type ());
+ g_type_ensure (e_mail_formatter_quote_text_enriched_get_type ());
+ g_type_ensure (e_mail_formatter_quote_text_html_get_type ());
+ g_type_ensure (e_mail_formatter_quote_text_plain_get_type ());
+
e_mail_formatter_quote_internal_extensions_load (
E_MAIL_EXTENSION_REGISTRY (
E_MAIL_FORMATTER_CLASS (class)->extension_registry));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]