diff options
author | Andy Hertzfeld <andy@src.gnome.org> | 2001-03-13 02:03:48 +0000 |
---|---|---|
committer | Andy Hertzfeld <andy@src.gnome.org> | 2001-03-13 02:03:48 +0000 |
commit | 453aabc32634fe6c984f8b12125dca81ade52eb9 (patch) | |
tree | 8c35e7ee10bbcc9e2e1defe7194becc901ad053a /libnautilus-extensions | |
parent | dadaff5f784e9dba84b90b6821eb1a5e41c11846 (diff) | |
download | nautilus-453aabc32634fe6c984f8b12125dca81ade52eb9.tar.gz |
fixed bug that would crash if the downloaded xml was not parsable; also,
* components/rss-control/nautilus-rss-control.c:
(nautilus_rss_control_initialize), (extract_items),
(rss_read_done_callback):
fixed bug that would crash if the downloaded xml was not parsable;
also, added support for rss files that keep their payload in the
channel object instead of the root object (Wired, Salon, etc).
* libnautilus-extensions/nautilus-annotation.c:
(add_annotations_to_file), (got_annotations_callback),
(nautilus_annotation_get_annotation):
fiddled with some debugging stuff for annotations.
Diffstat (limited to 'libnautilus-extensions')
-rw-r--r-- | libnautilus-extensions/nautilus-annotation.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libnautilus-extensions/nautilus-annotation.c b/libnautilus-extensions/nautilus-annotation.c index 6547e1b15..0280239fe 100644 --- a/libnautilus-extensions/nautilus-annotation.c +++ b/libnautilus-extensions/nautilus-annotation.c @@ -618,7 +618,7 @@ add_annotations_to_file (xmlNodePtr node_ptr, const char *digest) xmlDocSetRootElement (document, node_ptr); /* save the xml tree as a file in the cache area */ - xmlSaveFile (digest_path, document); + xmlSaveFile (digest_path, document); xmlFreeDoc (document); g_free (digest_path); @@ -703,6 +703,8 @@ got_annotations_callback (GnomeVFSResult result, /* write the annotation out to our cache area, if necessary */ if (annotation_count > 0) { + g_message ("got annotation, count is %d", annotation_count); + saved_annotation = xmlCopyNode (next_annotation, TRUE); add_annotations_to_file (saved_annotation, digest); } @@ -843,6 +845,7 @@ char *nautilus_annotation_get_annotation (NautilusFile *file) /* there's a digest, so we if we have the annotations for the file cached locally */ annotations = look_up_local_annotation (file, digest); if (annotations != NULL) { + g_message ("already got local annotation for digest %s", digest); g_free (digest); return annotations; } |