aboutsummaryrefslogtreecommitdiffstats
path: root/composer/listener.c
diff options
context:
space:
mode:
authorLarry Ewing <lewing@ximian.com>2001-10-30 07:30:25 +0800
committerLarry Ewing <lewing@src.gnome.org>2001-10-30 07:30:25 +0800
commit80fffd093013bd250c98e1a05591de1a0b029f5a (patch)
treee9345a3e89c55afe88da4c084760a4c1728746ab /composer/listener.c
parent921c64fb60dfb696590d45f2521a041213a91b0a (diff)
downloadgsoc2013-evolution-80fffd093013bd250c98e1a05591de1a0b029f5a.tar
gsoc2013-evolution-80fffd093013bd250c98e1a05591de1a0b029f5a.tar.gz
gsoc2013-evolution-80fffd093013bd250c98e1a05591de1a0b029f5a.tar.bz2
gsoc2013-evolution-80fffd093013bd250c98e1a05591de1a0b029f5a.tar.lz
gsoc2013-evolution-80fffd093013bd250c98e1a05591de1a0b029f5a.tar.xz
gsoc2013-evolution-80fffd093013bd250c98e1a05591de1a0b029f5a.tar.zst
gsoc2013-evolution-80fffd093013bd250c98e1a05591de1a0b029f5a.zip
add GList to hold the current images.
2001-10-29 Larry Ewing <lewing@ximian.com> * e-msg-composer.h: add GList to hold the current images. * listener.c (resolve_image_url): keep track of the images that the editor is currently uses in current_images as well as storing the images in the hash. * e-msg-composer.c (clear_current_images): clear the list of images actually in the message. (add_inlined_images): use the current image list rather than the hash tables. (build_message): clear the current image list when appropriate. (init): initialize current_images. svn path=/trunk/; revision=14379
Diffstat (limited to 'composer/listener.c')
-rw-r--r--composer/listener.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/composer/listener.c b/composer/listener.c
index 2cd3dbb63d..d85f27aa8a 100644
--- a/composer/listener.c
+++ b/composer/listener.c
@@ -60,9 +60,14 @@ resolve_image_url (EditorListener *l, gchar *url)
part = e_msg_composer_add_inline_image_from_file (l->composer,
url + 5);
}
+ if (!part && !strncmp (url, "cid:", 4)) {
+ part = g_hash_table_lookup (l->composer->inline_images, url);
+ }
if (!part)
return NULL;
+ l->composer->current_images = g_list_prepend (l->composer->current_images, part);
+
cid = camel_mime_part_get_content_id (part);
if (!cid)
return NULL;