From f3abccbb20e7258eef7e88d47e40e20e59473f65 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Fri, 10 Jan 2003 14:45:29 +0000 Subject: Download favicon only when it's not already on disk. As side effect avoid 2003-01-10 Marco Pesenti Gritti * embed/ephy-favicon-cache.c: (ephy_favicon_cache_insert_from_url): Download favicon only when it's not already on disk. As side effect avoid most crashes on exit. Still need to really fix that. --- ChangeLog | 7 +++++++ embed/ephy-favicon-cache.c | 6 ++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index c5943e373..4a2e58b8c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2003-01-10 Marco Pesenti Gritti + + * embed/ephy-favicon-cache.c: (ephy_favicon_cache_insert_from_url): + + Download favicon only when it's not already on disk. As side effect + avoid most crashes on exit. Still need to really fix that. + 2003-01-09 Marco Pesenti Gritti * data/Makefile.am: diff --git a/embed/ephy-favicon-cache.c b/embed/ephy-favicon-cache.c index fd3c4192b..d289fd4ab 100644 --- a/embed/ephy-favicon-cache.c +++ b/embed/ephy-favicon-cache.c @@ -324,8 +324,8 @@ ephy_favicon_cache_dest (EphyFaviconCache *cache, const char *url) void ephy_favicon_cache_insert_from_url (EphyFaviconCache *cache, - const char *url, - const char *favicon_url) + const char *url, + const char *favicon_url) { EphyEmbedPersist *persist; char *dest; @@ -337,6 +337,8 @@ ephy_favicon_cache_insert_from_url (EphyFaviconCache *cache, dest = ephy_favicon_cache_dest (cache, favicon_url); g_return_if_fail (dest != NULL); + if (g_file_test (dest, G_FILE_TEST_EXISTS)) return; + persist = ephy_embed_persist_new (NULL); ephy_embed_persist_set_max_size (persist, 100); -- cgit