aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-format-html.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-03-20 07:30:48 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-03-20 23:49:46 +0800
commit7c51d1c1a631a4a8daf26dd44a0aed41eb4726e0 (patch)
tree6fd638487108721b48023f2832e73961b8399296 /mail/em-format-html.c
parent84feab41bb9aae3362414ee818139a149a705903 (diff)
downloadgsoc2013-evolution-7c51d1c1a631a4a8daf26dd44a0aed41eb4726e0.tar.gz
gsoc2013-evolution-7c51d1c1a631a4a8daf26dd44a0aed41eb4726e0.tar.zst
gsoc2013-evolution-7c51d1c1a631a4a8daf26dd44a0aed41eb4726e0.zip
Add an extension to configure EMFormatHTML.
Make EMFormatHTML extensible and register an extension to automatically bind every EMFormatHTML instance to the appropriate EShellSettings.
Diffstat (limited to 'mail/em-format-html.c')
-rw-r--r--mail/em-format-html.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/mail/em-format-html.c b/mail/em-format-html.c
index 26c6f92ff3..7cf5a1f2f6 100644
--- a/mail/em-format-html.c
+++ b/mail/em-format-html.c
@@ -47,6 +47,7 @@
#include "e-util/e-icon-factory.h"
#include "e-util/e-util-private.h"
#include "e-util/e-util.h"
+#include "e-util/e-extensible.h"
#include <gtkhtml/gtkhtml.h>
#include <gtkhtml/gtkhtml-stream.h>
@@ -965,6 +966,8 @@ efh_init (EMFormatHTML *efh,
g_signal_connect_swapped (
efh, "notify::mark-citations",
G_CALLBACK (em_format_redraw), NULL);
+
+ e_extensible_load_extensions (E_EXTENSIBLE (efh));
}
GType
@@ -986,9 +989,18 @@ em_format_html_get_type (void)
NULL /* value_table */
};
+ static const GInterfaceInfo extensible_info = {
+ (GInterfaceInitFunc) NULL,
+ (GInterfaceFinalizeFunc) NULL,
+ NULL /* interface_data */
+ };
+
type = g_type_register_static (
em_format_get_type(), "EMFormatHTML",
&type_info, G_TYPE_FLAG_ABSTRACT);
+
+ g_type_add_interface_static (
+ type, E_TYPE_EXTENSIBLE, &extensible_info);
}
return type;