aboutsummaryrefslogtreecommitdiffstats
path: root/em-format
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2012-12-08 03:55:20 +0800
committerMatthew Barnes <mbarnes@redhat.com>2012-12-08 03:55:20 +0800
commite6305c503a150fd9b4bbc310980019b0d90ef118 (patch)
treea048b39360d127c27a7d55aed3eb88c2392245b8 /em-format
parent42d4cff57b09ee5c17433ba5d483cd1069c1bdda (diff)
downloadgsoc2013-evolution-e6305c503a150fd9b4bbc310980019b0d90ef118.tar.gz
gsoc2013-evolution-e6305c503a150fd9b4bbc310980019b0d90ef118.tar.zst
gsoc2013-evolution-e6305c503a150fd9b4bbc310980019b0d90ef118.zip
e_mail_formatter_base_init(): Register internal extension types.
Diffstat (limited to 'em-format')
-rw-r--r--em-format/e-mail-formatter.c32
1 files changed, 29 insertions, 3 deletions
diff --git a/em-format/e-mail-formatter.c b/em-format/e-mail-formatter.c
index 2c100cb8ed..5ab7f5c2dc 100644
--- a/em-format/e-mail-formatter.c
+++ b/em-format/e-mail-formatter.c
@@ -24,8 +24,6 @@
#include "e-mail-formatter-utils.h"
#include "e-mail-part.h"
-#include "e-mail-format-extensions.h"
-
#include <e-util/e-util.h>
#include <libebackend/libebackend.h>
#include <gdk/gdk.h>
@@ -33,6 +31,21 @@
#define d(x)
+/* internal formatter extensions */
+GType e_mail_formatter_attachment_get_type (void);
+GType e_mail_formatter_attachment_bar_get_type (void);
+GType e_mail_formatter_error_get_type (void);
+GType e_mail_formatter_headers_get_type (void);
+GType e_mail_formatter_image_get_type (void);
+GType e_mail_formatter_message_rfc822_get_type (void);
+GType e_mail_formatter_secure_button_get_type (void);
+GType e_mail_formatter_source_get_type (void);
+GType e_mail_formatter_text_enriched_get_type (void);
+GType e_mail_formatter_text_html_get_type (void);
+GType e_mail_formatter_text_plain_get_type (void);
+
+void e_mail_formatter_internal_extensions_load (EMailExtensionRegistry *ereg);
+
struct _EMailFormatterPrivate {
EMailImageLoadingPolicy image_loading_policy;
@@ -499,11 +512,24 @@ mail_formatter_set_style (EMailFormatter *formatter,
static void
e_mail_formatter_base_init (EMailFormatterClass *class)
{
+ /* Register internal extensions. */
+ g_type_ensure (e_mail_formatter_attachment_get_type ());
+ g_type_ensure (e_mail_formatter_attachment_bar_get_type ());
+ g_type_ensure (e_mail_formatter_error_get_type ());
+ g_type_ensure (e_mail_formatter_headers_get_type ());
+ g_type_ensure (e_mail_formatter_image_get_type ());
+ g_type_ensure (e_mail_formatter_message_rfc822_get_type ());
+ g_type_ensure (e_mail_formatter_secure_button_get_type ());
+ g_type_ensure (e_mail_formatter_source_get_type ());
+ g_type_ensure (e_mail_formatter_text_enriched_get_type ());
+ g_type_ensure (e_mail_formatter_text_html_get_type ());
+ g_type_ensure (e_mail_formatter_text_plain_get_type ());
+
class->extension_registry = g_object_new (
E_TYPE_MAIL_FORMATTER_EXTENSION_REGISTRY, NULL);
e_mail_formatter_internal_extensions_load (
- E_MAIL_EXTENSION_REGISTRY (class->extension_registry));
+ E_MAIL_EXTENSION_REGISTRY (class->extension_registry));
e_extensible_load_extensions (
E_EXTENSIBLE (class->extension_registry));