aboutsummaryrefslogtreecommitdiffstats
path: root/my-evolution/e-summary-rdf.c
diff options
context:
space:
mode:
authorIain Holmes <iain@src.gnome.org>2001-07-17 02:06:35 +0800
committerIain Holmes <iain@src.gnome.org>2001-07-17 02:06:35 +0800
commitaf019dc03bac8bafb77b5cb4a98bdc17fd733b49 (patch)
treee618de09361ad3391fdb02accfc173947a3021c4 /my-evolution/e-summary-rdf.c
parente215bcef02af68a9520875cd7cfaa3a63ae4345c (diff)
downloadgsoc2013-evolution-af019dc03bac8bafb77b5cb4a98bdc17fd733b49.tar
gsoc2013-evolution-af019dc03bac8bafb77b5cb4a98bdc17fd733b49.tar.gz
gsoc2013-evolution-af019dc03bac8bafb77b5cb4a98bdc17fd733b49.tar.bz2
gsoc2013-evolution-af019dc03bac8bafb77b5cb4a98bdc17fd733b49.tar.lz
gsoc2013-evolution-af019dc03bac8bafb77b5cb4a98bdc17fd733b49.tar.xz
gsoc2013-evolution-af019dc03bac8bafb77b5cb4a98bdc17fd733b49.tar.zst
gsoc2013-evolution-af019dc03bac8bafb77b5cb4a98bdc17fd733b49.zip
Nicer error reporting.
svn path=/trunk/; revision=11130
Diffstat (limited to 'my-evolution/e-summary-rdf.c')
-rw-r--r--my-evolution/e-summary-rdf.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/my-evolution/e-summary-rdf.c b/my-evolution/e-summary-rdf.c
index 954e03fc4a..5fed306fff 100644
--- a/my-evolution/e-summary-rdf.c
+++ b/my-evolution/e-summary-rdf.c
@@ -296,7 +296,7 @@ tree_walk (xmlNodePtr root,
g_string_append (html, tmp);
g_free (tmp);
}
- g_string_append (html, "</UL></dl>");
+ g_string_append (html, "</UL>");
}
static void
@@ -307,11 +307,16 @@ display_doc (RDF *r)
html = g_string_new ("<dl><dt><img src=\"ico-rdf.png\" align=\"middle\" "
"width=\"48\" height=\"48\"><b>");
- tree_walk (r->cache->root, r, html);
+ if (r->cache == NULL) {
+ g_string_append (html, _("There was an error downloading news feed</dt>"));
+ } else {
+ tree_walk (r->cache->root, r, html);
+ }
if (r->html != NULL) {
g_free (r->html);
}
+ g_string_append (html, "</dl>");
r->html = html->str;
g_string_free (html, FALSE);
@@ -354,6 +359,7 @@ close_callback (GnomeVFSAsyncHandle *handle,
}
doc = xmlParseMemory (xml, strlen (xml));
+#if 0
if (doc == NULL) {
if (r->html != NULL) {
g_free (r->html);
@@ -364,7 +370,7 @@ close_callback (GnomeVFSAsyncHandle *handle,
g_free (xml);
return;
}
-
+#endif
g_free (xml);
r->cache = doc;
@@ -412,7 +418,7 @@ open_callback (GnomeVFSAsyncHandle *handle,
if (result != GNOME_VFS_OK) {
r->html = e_utf8_from_locale_string (_("<b>Error downloading RDF</b>"));
- e_summary_draw (r->summary);
+ display_doc (r);
return;
}