aboutsummaryrefslogtreecommitdiffstats
path: root/composer
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@src.gnome.org>2009-03-26 12:48:21 +0800
committerMatthew Barnes <mbarnes@src.gnome.org>2009-03-26 12:48:21 +0800
commitc05c973cff53769ef575bfc5257a2a414117b323 (patch)
tree0fbf2bedde0eccc6062d2240890ab53875f6aa71 /composer
parent6e163b39c75dbba470d073b4f79a897aa6fb0e54 (diff)
downloadgsoc2013-evolution-c05c973cff53769ef575bfc5257a2a414117b323.tar
gsoc2013-evolution-c05c973cff53769ef575bfc5257a2a414117b323.tar.gz
gsoc2013-evolution-c05c973cff53769ef575bfc5257a2a414117b323.tar.bz2
gsoc2013-evolution-c05c973cff53769ef575bfc5257a2a414117b323.tar.lz
gsoc2013-evolution-c05c973cff53769ef575bfc5257a2a414117b323.tar.xz
gsoc2013-evolution-c05c973cff53769ef575bfc5257a2a414117b323.tar.zst
gsoc2013-evolution-c05c973cff53769ef575bfc5257a2a414117b323.zip
Saving progress again on the attachment rewrite.
svn path=/branches/kill-bonobo/; revision=37476
Diffstat (limited to 'composer')
-rw-r--r--composer/e-msg-composer.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c
index f77addfa58..fd7a9939f6 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -1959,6 +1959,9 @@ msg_composer_paste_clipboard (GtkhtmlEditor *editor)
attachment = e_attachment_new_for_uri (uri);
e_attachment_store_add_attachment (store, attachment);
+ e_attachment_load_async (
+ attachment, (GAsyncReadyCallback)
+ e_attachment_load_handle_error, composer);
g_object_unref (attachment);
}
@@ -3443,6 +3446,9 @@ handle_mailto (EMsgComposer *composer, const gchar *mailto)
attachment = e_attachment_new_for_uri (content);
e_attachment_store_add_attachment (store, attachment);
+ e_attachment_load_async (
+ attachment, (GAsyncReadyCallback)
+ e_attachment_load_handle_error, composer);
g_object_unref (attachment);
} else if (!g_ascii_strcasecmp (header, "from")) {
/* Ignore */
@@ -3679,6 +3685,9 @@ e_msg_composer_attach (EMsgComposer *composer,
attachment = e_attachment_new ();
e_attachment_set_mime_part (attachment, mime_part);
e_attachment_store_add_attachment (store, attachment);
+ e_attachment_load_async (
+ attachment, (GAsyncReadyCallback)
+ e_attachment_load_handle_error, composer);
g_object_unref (attachment);
}