[Xfce4-commits] <tumbler:jeromeg/webkit-thumbnailer> Use Webkit document viewer cache model.
Jérôme Guelfucci
noreply at xfce.org
Sat Jun 4 13:34:01 CEST 2011
Updating branch refs/heads/jeromeg/webkit-thumbnailer
to 31bd1c5efc7538a845cd27f139875719e38987ff (commit)
from 7694090c4e0046282ffc30ea2efbb0aacacf2fac (commit)
commit 31bd1c5efc7538a845cd27f139875719e38987ff
Author: Jérôme Guelfucci <jeromeg at xfce.org>
Date: Fri Jun 3 17:43:55 2011 +0200
Use Webkit document viewer cache model.
This will reduce the memory usage by using less aggressive caching which
we don't need.
plugins/webkit-thumbnailer/webkit-thumbnailer.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/plugins/webkit-thumbnailer/webkit-thumbnailer.c b/plugins/webkit-thumbnailer/webkit-thumbnailer.c
index cfff3cb..e30559e 100644
--- a/plugins/webkit-thumbnailer/webkit-thumbnailer.c
+++ b/plugins/webkit-thumbnailer/webkit-thumbnailer.c
@@ -136,6 +136,9 @@ webkit_thumbnailer_init (WebkitThumbnailer *thumbnailer)
/* create a new websettings and disable potential threats */
settings = webkit_web_settings_new ();
+ /* Set document viewer cache model to reduce memory usage */
+ webkit_set_cache_model (WEBKIT_CACHE_MODEL_DOCUMENT_VIEWER);
+
/* disable plugins, javascript, java and html5 local features */
g_object_set (G_OBJECT(settings),
"enable-scripts", FALSE,
More information about the Xfce4-commits
mailing list