diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | embed/ephy-favicon-cache.c | 6 |
2 files changed, 11 insertions, 2 deletions
@@ -1,3 +1,10 @@ +2003-01-10 Marco Pesenti Gritti <marco@it.gnome.org> + + * 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 <marco@it.gnome.org> * 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); |