[Xfce4-commits] <midori:master> Remove thumbnail files from cache by uri

Christian Dywan noreply at xfce.org
Wed Apr 13 23:58:01 CEST 2011


Updating branch refs/heads/master
         to 28e269365d3fb8acc483504b575886335d2144ea (commit)
       from 42d4ebfdae580ac4043f3fcf78f10a7c9a6d2170 (commit)

commit 28e269365d3fb8acc483504b575886335d2144ea
Author: Paweł Forysiuk <tuxator at o2.pl>
Date:   Wed Apr 13 22:09:22 2011 +0200

    Remove thumbnail files from cache by uri

 midori/midori-view.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/midori/midori-view.c b/midori/midori-view.c
index a476993..d26e3cd 100644
--- a/midori/midori-view.c
+++ b/midori/midori-view.c
@@ -5745,11 +5745,13 @@ midori_view_speed_dial_save (MidoriView*  view,
 
         if (g_str_equal (action, "delete"))
         {
-            gchar* file_path = sokoke_build_thumbnail_path (parts[1]);
+            gchar* uri = g_key_file_get_string (key_file, dial_id, "uri", NULL);
+            gchar* file_path = sokoke_build_thumbnail_path (uri);
 
             g_key_file_remove_group (key_file, dial_id, NULL);
             g_unlink (file_path);
 
+            g_free (uri);
             g_free (file_path);
         }
         else if (g_str_equal (action, "add"))



More information about the Xfce4-commits mailing list