diff options
author | Dan Winship <danw@src.gnome.org> | 2001-01-17 08:28:07 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2001-01-17 08:28:07 +0800 |
commit | 33e5c0e88a5a3f15a9a2099021268e2246a6afd4 (patch) | |
tree | f6e003d062f5bed72e3e376e2f483428e7c476ae /mail | |
parent | 8ad855fef6632e32723242fda554fce04f025036 (diff) | |
download | gsoc2013-evolution-33e5c0e88a5a3f15a9a2099021268e2246a6afd4.tar.gz gsoc2013-evolution-33e5c0e88a5a3f15a9a2099021268e2246a6afd4.tar.zst gsoc2013-evolution-33e5c0e88a5a3f15a9a2099021268e2246a6afd4.zip |
Don't do thumbnails for offline images
* mail-display.c (on_object_requested): Don't do thumbnails for
offline images
svn path=/trunk/; revision=7558
Diffstat (limited to 'mail')
-rw-r--r-- | mail/ChangeLog | 5 | ||||
-rw-r--r-- | mail/mail-display.c | 13 |
2 files changed, 13 insertions, 5 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index 1d5c1dab71..e7258dcc1e 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,8 @@ +2001-01-16 Dan Winship <danw@ximian.com> + + * mail-display.c (on_object_requested): Don't do thumbnails for + offline images + 2001-01-16 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (save_msg_ok): If the user hits "No", then diff --git a/mail/mail-display.c b/mail/mail-display.c index a407ee1c2e..745ec5615e 100644 --- a/mail/mail-display.c +++ b/mail/mail-display.c @@ -653,11 +653,14 @@ on_object_requested (GtkHTML *html, GtkHTMLEmbedded *eb, gpointer data) pbl = g_new0 (struct _PixbufLoader, 1); if (g_strncasecmp (eb->type, "image/", 6) == 0) { - pbl->mstream = camel_stream_mem_new (); - camel_data_wrapper_write_to_stream ( - camel_medium_get_content_object (medium), - pbl->mstream); - camel_stream_reset (pbl->mstream); + CamelDataWrapper *content; + + content = camel_medium_get_content_object (medium); + if (!camel_data_wrapper_is_offline (content)) { + pbl->mstream = camel_stream_mem_new (); + camel_data_wrapper_write_to_stream (content, pbl->mstream); + camel_stream_reset (pbl->mstream); + } } pbl->type = g_strdup (eb->type); pbl->cid = g_strdup (cid); |