[evolution-rss] fix webkit user-agent (req webkit >= 1.1.11)



commit 798222eb527f86dc5678ef3fef5ed41705baa286
Author: Lucian Langa <lucilanga gnome org>
Date:   Sat Aug 1 18:08:30 2009 +0300

    fix webkit user-agent (req webkit >= 1.1.11)

 TODO      |    1 -
 src/rss.c |    5 +++++
 2 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/TODO b/TODO
index ca88571..c81a363 100644
--- a/TODO
+++ b/TODO
@@ -39,7 +39,6 @@
 	* cancel fetching comments when summary display is changed
 	* detect duplicate items by content not by feedid
 	* make gtkhtml rendering non-bloking
- 	* check webkit user agent
 	* use ellipsize in web auth dialog
 	* check feed_folders for errors
 	* check rss_delete_feed for race condition when deletion of camel folder
diff --git a/src/rss.c b/src/rss.c
index a05cd7f..a4c4b65 100644
--- a/src/rss.c
+++ b/src/rss.c
@@ -1421,6 +1421,11 @@ webkit_set_preferences(void)
 	if (rss_soup_jar)
 		soup_session_add_feature(webkit_session, SOUP_SESSION_FEATURE(rss_soup_jar));
 #endif
+	//requires webkit >= 1.1.11
+	gchar *agstr = g_strdup_printf("Evolution/%s; Evolution-RSS/%s",
+                        EVOLUTION_VERSION_STRING, VERSION);
+	g_object_set (rf->mozembed, "user-agent", agstr,  NULL);
+	g_free(agstr);
 }
 
 void



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]