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-handler.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'widgets/misc/e-attachment-handler.h') diff --git a/widgets/misc/e-attachment-handler.h b/widgets/misc/e-attachment-handler.h index e7e52c8c18..e85cd9b2ee 100644 --- a/widgets/misc/e-attachment-handler.h +++ b/widgets/misc/e-attachment-handler.h @@ -22,6 +22,7 @@ #ifndef E_ATTACHMENT_HANDLER_H #define E_ATTACHMENT_HANDLER_H +#include #include /* Standard GObject macros */ @@ -50,12 +51,12 @@ typedef struct _EAttachmentHandlerClass EAttachmentHandlerClass; typedef struct _EAttachmentHandlerPrivate EAttachmentHandlerPrivate; struct _EAttachmentHandler { - GObject parent; + EExtension parent; EAttachmentHandlerPrivate *priv; }; struct _EAttachmentHandlerClass { - GObjectClass parent_class; + EExtensionClass parent_class; GdkDragAction (*get_drag_actions) (EAttachmentHandler *handler); const GtkTargetEntry * -- cgit v1.2.3