aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-03-05 07:01:28 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-03-05 07:01:28 +0800
commit1bd6c04cf60a583d625c986941eb102e7f9c9055 (patch)
treeeabfaf4ec55fdddddff6c34d3a67333a9b145808 /mail
parentc5f85f4f331f5b8117d24dbec871a312d712e654 (diff)
downloadgsoc2013-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')
-rw-r--r--mail/ChangeLog4
-rw-r--r--mail/folder-browser.c4
-rw-r--r--mail/mail-display.c15
3 files changed, 17 insertions, 6 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index becab93fa1..3d5ce177df 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,5 +1,9 @@
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?
+
* folder-browser.c (my_folder_browser_init): Connect to the
focus-in/out events on the message-list so that we can disable the
EditInvertSelection and EditSelectThread menu items when the
diff --git a/mail/folder-browser.c b/mail/folder-browser.c
index b025ba9291..4fc1f77249 100644
--- a/mail/folder-browser.c
+++ b/mail/folder-browser.c
@@ -2109,10 +2109,10 @@ my_folder_browser_init (GtkObject *object)
gtk_signal_connect (GTK_OBJECT (fb->message_list->tree),
"double_click", GTK_SIGNAL_FUNC (on_double_click), fb);
- gtk_signal_connect (GTK_OBJECT (fb->message_list->tree), "focus_in_event",
+ gtk_signal_connect (GTK_OBJECT (fb->message_list), "focus_in_event",
GTK_SIGNAL_FUNC (on_message_list_focus_in), fb);
- gtk_signal_connect (GTK_OBJECT (fb->message_list->tree), "focus_out_event",
+ gtk_signal_connect (GTK_OBJECT (fb->message_list), "focus_out_event",
GTK_SIGNAL_FUNC (on_message_list_focus_out), fb);
gtk_signal_connect (GTK_OBJECT (fb->message_list), "message_selected",
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;