From 8223eaf57016792a4fcbe90b8923eadb2cd87a45 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Thu, 26 Aug 2010 19:32:36 -0400 Subject: Convert EAttachmentHandler to an EExtension. EAttachmentHandler predates EExtension, so this is really just a code cleanup to use the extension framework. But this also demonstrates that extensions can target interfaces as well as instantiable types, since EAttachmentView is an interface. What's also nice is EAttachmentView no longer has to directly interact with attachment handlers. Instead of EAttachmentView having to query each attachment handler for drag-and-drop info, each handler now pushes its own drag-and-drop info to its EAttachmentView during initialization. --- widgets/misc/e-attachment-tree-view.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'widgets/misc/e-attachment-tree-view.c') diff --git a/widgets/misc/e-attachment-tree-view.c b/widgets/misc/e-attachment-tree-view.c index c404920d33..a2210db5a6 100644 --- a/widgets/misc/e-attachment-tree-view.c +++ b/widgets/misc/e-attachment-tree-view.c @@ -22,6 +22,7 @@ #include "e-attachment-tree-view.h" #include +#include #include "e-attachment.h" #include "e-attachment-store.h" @@ -51,7 +52,9 @@ G_DEFINE_TYPE_WITH_CODE ( GTK_TYPE_TREE_VIEW, G_IMPLEMENT_INTERFACE ( E_TYPE_ATTACHMENT_VIEW, - e_attachment_tree_view_interface_init)) + e_attachment_tree_view_interface_init) + G_IMPLEMENT_INTERFACE ( + E_TYPE_EXTENSIBLE, NULL)) static void attachment_tree_view_set_property (GObject *object, -- cgit v1.2.3