[Xfce4-commits] <midori:master> Remove web cache path and size settings

Christian Dywan noreply at xfce.org
Tue Oct 12 00:26:02 CEST 2010


Updating branch refs/heads/master
         to ab414bc251415daef03d86cbfca62f272e7e36ea (commit)
       from eb0848e42b831cdd676147d878fabb291bc1f2e5 (commit)

commit ab414bc251415daef03d86cbfca62f272e7e36ea
Author: Christian Dywan <christian at twotoasts.de>
Date:   Mon Oct 11 23:11:26 2010 +0200

    Remove web cache path and size settings

 extensions/web-cache.c |    9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)

diff --git a/extensions/web-cache.c b/extensions/web-cache.c
index 884e083..a88a22f 100644
--- a/extensions/web-cache.c
+++ b/extensions/web-cache.c
@@ -37,7 +37,8 @@ web_cache_get_cached_path (MidoriExtension* extension,
     gchar* cached_path;
 
     if (!cache_path)
-        cache_path = midori_extension_get_string (extension, "path");
+        cache_path = g_build_filename (g_get_user_cache_dir (),
+                                       PACKAGE_NAME, "web", NULL);
     checksum = g_compute_checksum_for_string (G_CHECKSUM_MD5, uri, -1);
     folder = g_strdup_printf ("%c%c", checksum[0], checksum[1]);
     sub_path = g_build_path (G_DIR_SEPARATOR_S, cache_path, folder, NULL);
@@ -456,18 +457,12 @@ web_cache_activate_cb (MidoriExtension* extension,
 MidoriExtension*
 extension_init (void)
 {
-    gchar* cache_path = g_build_filename (g_get_user_cache_dir (),
-                                          PACKAGE_NAME, "web", NULL);
     MidoriExtension* extension = g_object_new (MIDORI_TYPE_EXTENSION,
         "name", _("Web Cache"),
         "description", _("Cache HTTP communication on disk"),
         "version", "0.1",
         "authors", "Christian Dywan <christian at twotoasts.de>",
         NULL);
-    midori_extension_install_string (extension, "path", cache_path);
-    midori_extension_install_integer (extension, "size", 50);
-
-    g_free (cache_path);
 
     g_signal_connect (extension, "activate",
         G_CALLBACK (web_cache_activate_cb), NULL);



More information about the Xfce4-commits mailing list