diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-08-27 07:32:36 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-08-27 07:32:36 +0800 |
commit | 8223eaf57016792a4fcbe90b8923eadb2cd87a45 (patch) | |
tree | 5123bfa28050b5efec2b5c9e75681d37a24d08d0 /widgets/misc/e-attachment-icon-view.c | |
parent | 87a3fac95cfdcb3dde4e0b75718239de20d8812f (diff) | |
download | gsoc2013-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-icon-view.c')
-rw-r--r-- | widgets/misc/e-attachment-icon-view.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/widgets/misc/e-attachment-icon-view.c b/widgets/misc/e-attachment-icon-view.c index 5c874f8bca..9ec8fce83d 100644 --- a/widgets/misc/e-attachment-icon-view.c +++ b/widgets/misc/e-attachment-icon-view.c @@ -22,6 +22,7 @@ #include "e-attachment-icon-view.h" #include <glib/gi18n.h> +#include <e-util/e-extensible.h> #include "e-attachment.h" #include "e-attachment-store.h" @@ -53,7 +54,9 @@ G_DEFINE_TYPE_WITH_CODE ( GTK_TYPE_ICON_VIEW, G_IMPLEMENT_INTERFACE ( E_TYPE_ATTACHMENT_VIEW, - e_attachment_icon_view_interface_init)) + e_attachment_icon_view_interface_init) + G_IMPLEMENT_INTERFACE ( + E_TYPE_EXTENSIBLE, NULL)) void e_attachment_icon_view_set_default_icon_size (gint size) @@ -522,6 +525,8 @@ e_attachment_icon_view_init (EAttachmentIconView *icon_view) gtk_cell_layout_add_attribute ( cell_layout, renderer, "visible", E_ATTACHMENT_STORE_COLUMN_SAVING); + + e_extensible_load_extensions (E_EXTENSIBLE (icon_view)); } static void |