diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2002-03-05 07:01:28 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2002-03-05 07:01:28 +0800 |
commit | 1bd6c04cf60a583d625c986941eb102e7f9c9055 (patch) | |
tree | eabfaf4ec55fdddddff6c34d3a67333a9b145808 /mail/mail-display.c | |
parent | c5f85f4f331f5b8117d24dbec871a312d712e654 (diff) | |
download | gsoc2013-evolution-1bd6c04cf60a583d625c986941eb102e7f9c9055.tar gsoc2013-evolution-1bd6c04cf60a583d625c986941eb102e7f9c9055.tar.gz gsoc2013-evolution-1bd6c04cf60a583d625c986941eb102e7f9c9055.tar.bz2 gsoc2013-evolution-1bd6c04cf60a583d625c986941eb102e7f9c9055.tar.lz gsoc2013-evolution-1bd6c04cf60a583d625c986941eb102e7f9c9055.tar.xz gsoc2013-evolution-1bd6c04cf60a583d625c986941eb102e7f9c9055.tar.zst gsoc2013-evolution-1bd6c04cf60a583d625c986941eb102e7f9c9055.zip |
Added more debugging code to help figure out why a certain image isn't
2002-03-04 Jeffrey Stedfast <fejj@ximian.com>
* mail-display.c (load_http): Added more debugging code to help
figure out why a certain image isn't loading - looks like
gnome-vfs is getting a premature EOF?
svn path=/trunk/; revision=15910
Diffstat (limited to 'mail/mail-display.c')
-rw-r--r-- | mail/mail-display.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/mail/mail-display.c b/mail/mail-display.c index 1a1f454828..69656c5d0f 100644 --- a/mail/mail-display.c +++ b/mail/mail-display.c @@ -1070,9 +1070,11 @@ load_http (MailDisplay *md, gpointer data) GHashTable *urls; GnomeVFSHandle *handle; GnomeVFSFileSize read; + GnomeVFSResult result; GByteArray *ba; char buf[8192]; - + size_t total = 0; + urls = g_datalist_get_data (md->data, "data_urls"); ba = g_hash_table_lookup (urls, url); g_return_if_fail (ba != NULL); @@ -1085,10 +1087,15 @@ load_http (MailDisplay *md, gpointer data) return; } - while (gnome_vfs_read (handle, buf, sizeof (buf), &read) == GNOME_VFS_OK) + while ((result = gnome_vfs_read (handle, buf, sizeof (buf), &read)) == GNOME_VFS_OK) { + printf ("%s: read %d bytes\n", url, read); g_byte_array_append (ba, buf, read); + total += read; + } gnome_vfs_close (handle); - + + printf ("gnome_vfs_read result is %d; read %d total bytes\n", result, total); + #if 0 if (!ba->len) printf ("no data in %s\n", url); @@ -1137,7 +1144,7 @@ on_url_requested (GtkHTML *html, const char *url, GtkHTMLStream *handle, if (md->related) g_hash_table_remove(md->related, medium); - + data = camel_medium_get_content_object (medium); if (!mail_content_loaded (data, md, FALSE, url, html, handle)) return; |