[evolution-rss] fix build without webkit
- From: Lucian Langa <lucilanga src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-rss] fix build without webkit
- Date: Sun, 20 Jun 2010 19:22:58 +0000 (UTC)
commit 23b523dd02309967da725331fa92c305a8df29a1
Author: Lucian Langa <lucilanga gnome org>
Date: Sun Jun 20 22:22:49 2010 +0300
fix build without webkit
src/rss.c | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/src/rss.c b/src/rss.c
index 480e3ae..7c11bf6 100644
--- a/src/rss.c
+++ b/src/rss.c
@@ -263,7 +263,9 @@ guint fallback_engine(void);
gchar *print_comments(gchar *url, gchar *stream, EMFormatHTML *format);
static void refresh_cb (GtkWidget *button, EMFormatHTMLPObject *pobject);
+#ifdef HAVE_WEBKIT
void webkit_set_history(gchar *base);
+#endif
gboolean show_webkit(GtkWidget *webkit);
void sync_folders(void);
@@ -496,19 +498,30 @@ browser_stream_write(CamelStream *stream, gchar *base)
g_free(tmp);
line = NULL;
}
+#ifdef HAVE_WEBKIT
+#if (WEBKIT_VERSION >= 1001001)
webkit_web_view_load_string(
WEBKIT_WEB_VIEW(rf->mozembed),
str->str,
"text/html",
NULL,
base);
+#else
+ webkit_web_view_load_html_string(
+ WEBKIT_WEB_VIEW(rf->mozembed),
+ str->str,
+ base);
+#endif
+#endif
g_string_free(str, 1);
#if (DATASERVER_VERSION >= 2031001)
g_object_unref(in);
#else
camel_object_unref(in);
#endif
+#ifdef HAVE_WEBKIT
webkit_set_history(base);
+#endif
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]