From 80fffd093013bd250c98e1a05591de1a0b029f5a Mon Sep 17 00:00:00 2001 From: Larry Ewing Date: Mon, 29 Oct 2001 23:30:25 +0000 Subject: add GList to hold the current images. 2001-10-29 Larry Ewing * 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 --- composer/listener.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'composer/listener.c') 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; -- cgit v1.2.3