aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-attachment-handler.h
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-08-27 07:32:36 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-08-27 07:32:36 +0800
commit8223eaf57016792a4fcbe90b8923eadb2cd87a45 (patch)
tree5123bfa28050b5efec2b5c9e75681d37a24d08d0 /widgets/misc/e-attachment-handler.h
parent87a3fac95cfdcb3dde4e0b75718239de20d8812f (diff)
downloadgsoc2013-evolution-8223eaf57016792a4fcbe90b8923eadb2cd87a45.tar
gsoc2013-evolution-8223eaf57016792a4fcbe90b8923eadb2cd87a45.tar.gz
gsoc2013-evolution-8223eaf57016792a4fcbe90b8923eadb2cd87a45.tar.bz2
gsoc2013-evolution-8223eaf57016792a4fcbe90b8923eadb2cd87a45.tar.lz
gsoc2013-evolution-8223eaf57016792a4fcbe90b8923eadb2cd87a45.tar.xz
gsoc2013-evolution-8223eaf57016792a4fcbe90b8923eadb2cd87a45.tar.zst
gsoc2013-evolution-8223eaf57016792a4fcbe90b8923eadb2cd87a45.zip
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.
Diffstat (limited to 'widgets/misc/e-attachment-handler.h')
-rw-r--r--widgets/misc/e-attachment-handler.h5
1 files changed, 3 insertions, 2 deletions
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 <e-util/e-extension.h>
#include <misc/e-attachment-view.h>
/* 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 *