aboutsummaryrefslogtreecommitdiffstats
path: root/src/prefs-dialog.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2005-08-08 05:47:11 +0800
committerChristian Persch <chpe@src.gnome.org>2005-08-08 05:47:11 +0800
commitec9060610c40fef18534b414d1979f4359f59a5e (patch)
tree59b34aaff789053cae2ab90bf7eb3331936fd4cc /src/prefs-dialog.c
parent8a5ef09c4435869dc39736d6c77c7d135f976223 (diff)
downloadgsoc2013-epiphany-ec9060610c40fef18534b414d1979f4359f59a5e.tar
gsoc2013-epiphany-ec9060610c40fef18534b414d1979f4359f59a5e.tar.gz
gsoc2013-epiphany-ec9060610c40fef18534b414d1979f4359f59a5e.tar.bz2
gsoc2013-epiphany-ec9060610c40fef18534b414d1979f4359f59a5e.tar.lz
gsoc2013-epiphany-ec9060610c40fef18534b414d1979f4359f59a5e.tar.xz
gsoc2013-epiphany-ec9060610c40fef18534b414d1979f4359f59a5e.tar.zst
gsoc2013-epiphany-ec9060610c40fef18534b414d1979f4359f59a5e.zip
Add way to clear the favicon cache. Also removes any extraneous files from
2005-08-07 Christian Persch <chpe@cvs.gnome.org> * 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.
Diffstat (limited to 'src/prefs-dialog.c')
-rw-r--r--src/prefs-dialog.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/prefs-dialog.c b/src/prefs-dialog.c
index 42b71f257..c8e7187b0 100644
--- a/src/prefs-dialog.c
+++ b/src/prefs-dialog.c
@@ -25,7 +25,7 @@
#include "ephy-dialog.h"
#include "ephy-prefs.h"
#include "ephy-embed-shell.h"
-#include "ephy-shell.h"
+#include "ephy-favicon-cache.h"
#include "ephy-session.h"
#include "ephy-embed-prefs.h"
#include "ephy-embed-single.h"
@@ -1272,10 +1272,17 @@ void
prefs_clear_cache_button_clicked_cb (GtkWidget *button,
gpointer data)
{
+ EphyEmbedShell *shell;
EphyEmbedSingle *single;
+ EphyFaviconCache *cache;
- single = EPHY_EMBED_SINGLE (ephy_embed_shell_get_embed_single (embed_shell));
+ shell = ephy_embed_shell_get_default ();
+
+ single = EPHY_EMBED_SINGLE (ephy_embed_shell_get_embed_single (shell));
ephy_embed_single_clear_cache (single);
+
+ cache = EPHY_FAVICON_CACHE (ephy_embed_shell_get_favicon_cache (shell));
+ ephy_favicon_cache_clear (cache);
}
static void