evolution-rss r410 - in trunk: . src
- From: lucilanga svn gnome org
- To: svn-commits-list gnome org
- Subject: evolution-rss r410 - in trunk: . src
- Date: Tue, 25 Nov 2008 11:06:39 +0000 (UTC)
Author: lucilanga
Date: Tue Nov 25 11:06:39 2008
New Revision: 410
URL: http://svn.gnome.org/viewvc/evolution-rss?rev=410&view=rev
Log:
2008-11-25 Lucian Langa <lucilanga gnome org>
* src/rss.c: fetch_blocking() new function
allow to retrieve network, file streams
* configure.ac: bump to devel version
* src/misc.c: sanitize_url() add file://
schmeme
Modified:
trunk/ChangeLog
trunk/TODO
trunk/configure.ac
trunk/src/misc.c
trunk/src/rss.c
Modified: trunk/TODO
==============================================================================
--- trunk/TODO (original)
+++ trunk/TODO Tue Nov 25 11:06:39 2008
@@ -45,3 +45,5 @@
#15 0x00007f257c9dec29 in rss_error (key=<value optimized out>,
name=<value optimized out>, error=<value optimized out>,
emsg=<value optimized out>) at rss.c:273
+ * getting message 1 of 0
+ * allow CTRL+F to search feed article content
Modified: trunk/configure.ac
==============================================================================
--- trunk/configure.ac (original)
+++ trunk/configure.ac Tue Nov 25 11:06:39 2008
@@ -1,4 +1,4 @@
-AC_INIT([evolution-rss], [0.1.2], http://bugzilla.gnome.org/enter_bug.cgi?product=evolution-rss)
+AC_INIT([evolution-rss], [0.1.3], http://bugzilla.gnome.org/enter_bug.cgi?product=evolution-rss)
AC_CONFIG_SRCDIR(src)
AM_INIT_AUTOMAKE
Modified: trunk/src/misc.c
==============================================================================
--- trunk/src/misc.c (original)
+++ trunk/src/misc.c Tue Nov 25 11:06:39 2008
@@ -78,13 +78,15 @@
else if (strstr(text, "feed:"))
tmptext = strextr(text, "feed:");
- if (!strstr (tmptext, "http://")
+ gchar *scheme = g_uri_parse_scheme(tmptext);
+ if (!scheme && !strstr (tmptext, "http://")
&& !strstr (tmptext, "https://"))
out = g_strconcat("http://", tmptext, NULL);
else
out = g_strdup(tmptext);
g_free(tmptext);
+ g_free(scheme);
return out;
}
Modified: trunk/src/rss.c
==============================================================================
--- trunk/src/rss.c (original)
+++ trunk/src/rss.c Tue Nov 25 11:06:39 2008
@@ -128,6 +128,7 @@
#include "rss.h"
#include "parser.h"
#include "network-soup.c"
+#include "fetch.c"
#include "misc.c"
#if HAVE_DBUS
#include "dbus.c"
@@ -1650,7 +1651,7 @@
goto out;
}
#endif
- content = net_post_blocking(addr, NULL, NULL, textcb, NULL, &err);
+ content = fetch_blocking(addr, NULL, NULL, textcb, NULL, &err);
if (err)
{
//we do not need to setup a pop error menu since we're in
@@ -1986,7 +1987,7 @@
goto add;
top: d(g_print("adding feed->feed_url:%s\n", feed->feed_url));
- content = net_post_blocking(feed->feed_url, NULL, post, textcb, rf, &err);
+ content = fetch_blocking(feed->feed_url, NULL, post, textcb, rf, &err);
if (err)
{
d(g_print("setup_feed() -> err:%s\n", err->message));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]