aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-attachment-store.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@src.gnome.org>2009-04-01 05:48:38 +0800
committerMatthew Barnes <mbarnes@src.gnome.org>2009-04-01 05:48:38 +0800
commit0485fb58c5beeb04f0b3d833e6b73a2d2ec1acc7 (patch)
tree90df407868f6e2636e064af23f3a8560b143ddf5 /widgets/misc/e-attachment-store.c
parent04cc4a2cb1bf87417f82d1094ddde611019c0ab8 (diff)
downloadgsoc2013-evolution-0485fb58c5beeb04f0b3d833e6b73a2d2ec1acc7.tar
gsoc2013-evolution-0485fb58c5beeb04f0b3d833e6b73a2d2ec1acc7.tar.gz
gsoc2013-evolution-0485fb58c5beeb04f0b3d833e6b73a2d2ec1acc7.tar.bz2
gsoc2013-evolution-0485fb58c5beeb04f0b3d833e6b73a2d2ec1acc7.tar.lz
gsoc2013-evolution-0485fb58c5beeb04f0b3d833e6b73a2d2ec1acc7.tar.xz
gsoc2013-evolution-0485fb58c5beeb04f0b3d833e6b73a2d2ec1acc7.tar.zst
gsoc2013-evolution-0485fb58c5beeb04f0b3d833e6b73a2d2ec1acc7.zip
Extend EAttachmentView by subclassing EAttachmentHandler.
So far it only supports extending the attachment pop-up menu, but I also plan to support extending drag and drop types. Might even end up replacing EMFormatHook. Two subclasses created so far: EAttachmentHandlerImage handles images (built-in) EAttachmentHandlerMail handles emails (defined in mail module) svn path=/branches/kill-bonobo/; revision=37487
Diffstat (limited to 'widgets/misc/e-attachment-store.c')
-rw-r--r--widgets/misc/e-attachment-store.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/widgets/misc/e-attachment-store.c b/widgets/misc/e-attachment-store.c
index 1eb429b41e..e565d68cae 100644
--- a/widgets/misc/e-attachment-store.c
+++ b/widgets/misc/e-attachment-store.c
@@ -790,10 +790,13 @@ attachment_store_save_list_finished_cb (EAttachment *attachment,
GAsyncResult *result,
SaveContext *save_context)
{
+ GFile *file;
GSimpleAsyncResult *simple;
GError *error = NULL;
- e_attachment_save_finish (attachment, result, &error);
+ file = e_attachment_save_finish (attachment, result, &error);
+ if (file != NULL)
+ g_object_unref (file);
/* Remove the attachment from the list. */
save_context->attachment_list = g_list_remove (