Updating branch refs/heads/jeromeg/webkit-thumbnailer-rebased to 99bb871d7859b4373d8ae287e49084b291152cba (commit) from 6f6facf272265e632d67a844e50f1a2858be5510 (commit)
commit 99bb871d7859b4373d8ae287e49084b291152cba Author: Jérôme Guelfucci <jero...@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, _______________________________________________ Xfce4-commits mailing list Xfce4-commits@xfce.org https://mail.xfce.org/mailman/listinfo/xfce4-commits