[balsa] Put webkit in document-viewer mode
- From: Peter Bloomfield <PeterB src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [balsa] Put webkit in document-viewer mode
- Date: Tue, 5 Jan 2010 21:45:38 +0000 (UTC)
commit 1f8e76cdb90ead054d05f4853f709ca54536344b
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Tue Jan 5 09:35:10 2010 -0500
Put webkit in document-viewer mode
ChangeLog | 5 +++++
libbalsa/html.c | 4 ++++
2 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 7905049..9a22e3f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2010-01-05 Peter Bloomfield
+ * libbalsa/html.c (libbalsa_html_new): put webkit in
+ document-viewer mode instead of the default browser mode.
+
+2010-01-05 Peter Bloomfield
+
* src/balsa-app.h: omit point size from default font names.
* src/pref-manager.c (open_preferences_manager),
(check_font_button), (apply_prefs), (font_button_check_font_size),
diff --git a/libbalsa/html.c b/libbalsa/html.c
index 289747d..a43da0c 100644
--- a/libbalsa/html.c
+++ b/libbalsa/html.c
@@ -322,6 +322,10 @@ libbalsa_html_new(const gchar * text,
g_signal_connect(web_view, "notify::progress",
G_CALLBACK(gtk_widget_queue_resize), NULL);
+#if WEBKIT_CHECK_VERSION(1, 1, 18)
+ webkit_set_cache_model(WEBKIT_CACHE_MODEL_DOCUMENT_VIEWER);
+#endif /* WEBKIT_CHECK_VERSION(1, 1, 18) */
+
webkit_web_view_load_string(web_view, text, "text/html", charset,
NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]