aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-attachment-view.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-view.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-view.h')
-rw-r--r--widgets/misc/e-attachment-view.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/widgets/misc/e-attachment-view.h b/widgets/misc/e-attachment-view.h
index b95c84bb5b..164413221c 100644
--- a/widgets/misc/e-attachment-view.h
+++ b/widgets/misc/e-attachment-view.h
@@ -92,9 +92,6 @@ struct _EAttachmentViewInterface {
struct _EAttachmentViewPrivate {
- /* Attachment Handlers */
- GPtrArray *handlers;
-
/* Drag Destination */
GtkTargetList *target_list;
GdkDragAction drag_actions;
@@ -133,6 +130,9 @@ GtkTargetList * e_attachment_view_get_target_list
(EAttachmentView *view);
GdkDragAction e_attachment_view_get_drag_actions
(EAttachmentView *view);
+void e_attachment_view_add_drag_actions
+ (EAttachmentView *view,
+ GdkDragAction drag_actions);
GList * e_attachment_view_get_selected_attachments
(EAttachmentView *view);
void e_attachment_view_open_path (EAttachmentView *view,