aboutsummaryrefslogtreecommitdiffstats
path: root/src/prefs-dialog.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/prefs-dialog.c')
-rw-r--r--src/prefs-dialog.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/prefs-dialog.c b/src/prefs-dialog.c
index 438cd900e..1d7bb34ee 100644
--- a/src/prefs-dialog.c
+++ b/src/prefs-dialog.c
@@ -318,18 +318,22 @@ void
prefs_clear_memory_cache_button_clicked_cb (GtkWidget *button,
gpointer data)
{
- EphyEmbedShell *shell;
+ EphyEmbedSingle *single;
- shell = EPHY_EMBED_SHELL (ephy_shell);
- ephy_embed_shell_clear_cache (shell, MEMORY_CACHE);
+ single = ephy_embed_shell_get_embed_single
+ (EPHY_EMBED_SHELL (ephy_shell));
+
+ ephy_embed_single_clear_cache (single, MEMORY_CACHE);
}
void
prefs_clear_disk_cache_button_clicked_cb (GtkWidget *button,
gpointer data)
{
- EphyEmbedShell *shell;
+ EphyEmbedSingle *single;
+
+ single = ephy_embed_shell_get_embed_single
+ (EPHY_EMBED_SHELL (ephy_shell));
- shell = EPHY_EMBED_SHELL (ephy_shell);
- ephy_embed_shell_clear_cache (shell, DISK_CACHE);
+ ephy_embed_single_clear_cache (single, DISK_CACHE);
}