[evolution-rss] fix displaying cached comments images
- From: Lucian Langa <lucilanga src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-rss] fix displaying cached comments images
- Date: Wed, 26 May 2010 14:29:54 +0000 (UTC)
commit 3fc23d4a6066ffd38755a2cca90f4e9e68352366
Author: Lucian Langa <lucilanga gnome org>
Date: Wed May 26 16:28:04 2010 +0300
fix displaying cached comments images
src/parser.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/parser.c b/src/parser.c
index e7423c1..0d01ae2 100644
--- a/src/parser.c
+++ b/src/parser.c
@@ -37,6 +37,7 @@ extern int rss_verbose_debug;
#include "fetch.h"
#include "rss.h"
#include "rss-config.h"
+#include "rss-image.h"
#include "parser.h"
#include "misc.h"
#include "network-soup.h"
@@ -863,6 +864,7 @@ process_images(gchar *text, gchar *link, EMFormatHTML *format)
{
xmlChar *buff = NULL;
guint size = 0;
+ gchar *tname;
xmlDoc *src = (xmlDoc *)parse_html_sux (text, strlen(text));
if (src) {
xmlNode *doc = (xmlNode *)src;
@@ -871,6 +873,10 @@ process_images(gchar *text, gchar *link, EMFormatHTML *format)
xmlChar *url = xmlGetProp(doc, (xmlChar *)"src");
if (url) {
if ((name = fetch_image_redraw((gchar *)url, link, format))) {
+ tname = decode_image_cache_filename(name);
+ g_free(name);
+ name = g_filename_to_uri (tname, NULL, NULL);
+ g_free(tname);
xmlSetProp(
doc, (xmlChar *)"src",
(xmlChar *)name);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]