From ec9060610c40fef18534b414d1979f4359f59a5e Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Sun, 7 Aug 2005 21:47:11 +0000 Subject: Add way to clear the favicon cache. Also removes any extraneous files from 2005-08-07 Christian Persch * embed/ephy-favicon-cache.c: (icons_removed_cb), (remove_obsolete_icons), (delete_file), (ephy_favicon_cache_finalize), (ephy_favicon_cache_get), (ephy_favicon_cache_clear): * embed/ephy-favicon-cache.h: Add way to clear the favicon cache. Also removes any extraneous files from favicon cache directory. Fix a crash which I wonder why we never experienced it! * src/prefs-dialog.c: (prefs_clear_cache_button_clicked_cb): Also clear favicon cache when clearing the cache. --- embed/ephy-favicon-cache.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'embed/ephy-favicon-cache.h') diff --git a/embed/ephy-favicon-cache.h b/embed/ephy-favicon-cache.h index a2d211821..f2161e6f9 100644 --- a/embed/ephy-favicon-cache.h +++ b/embed/ephy-favicon-cache.h @@ -1,7 +1,7 @@ /* * Copyright (C) 2002 Jorn Baayen * Copyright (C) 2003-2004 Marco Pesenti Gritti - * Copyright (C) 2004 Christian Persch + * Copyright (C) 2004, 2005 Christian Persch * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -63,6 +63,8 @@ EphyFaviconCache *ephy_favicon_cache_new (void); GdkPixbuf *ephy_favicon_cache_get (EphyFaviconCache *cache, const char *url); +void ephy_favicon_cache_clear (EphyFaviconCache *cache); + G_END_DECLS #endif /* EPHY_FAVICON_CACHE_H */ -- cgit v1.2.3