aboutsummaryrefslogtreecommitdiffstats
path: root/src/prefs-dialog.c
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@src.gnome.org>2007-12-21 16:55:25 +0800
committerCosimo Cecchi <cosimoc@src.gnome.org>2007-12-21 16:55:25 +0800
commit6adb4570e797dcafcd865fd67e489766294a2f8b (patch)
treeaa98e129db0c58f316e0f3f869477d9def1455aa /src/prefs-dialog.c
parentbcc23108bc5e8653a31744b3d758334681d899f2 (diff)
downloadgsoc2013-epiphany-6adb4570e797dcafcd865fd67e489766294a2f8b.tar.gz
gsoc2013-epiphany-6adb4570e797dcafcd865fd67e489766294a2f8b.tar.zst
gsoc2013-epiphany-6adb4570e797dcafcd865fd67e489766294a2f8b.zip
Adds a "Clear All" dialog to clear all the privacy information, and a help
section explaining its usage. Close bug #148314. svn path=/trunk/; revision=7793
Diffstat (limited to 'src/prefs-dialog.c')
-rw-r--r--src/prefs-dialog.c17
1 files changed, 7 insertions, 10 deletions
diff --git a/src/prefs-dialog.c b/src/prefs-dialog.c
index cef769b92..5c203ec92 100644
--- a/src/prefs-dialog.c
+++ b/src/prefs-dialog.c
@@ -41,6 +41,7 @@
#include "ephy-file-helpers.h"
#include "ephy-tree-model-node.h"
#include "ephy-tree-model-sort.h"
+#include "pdm-dialog.h"
#include <glib/gi18n.h>
#include <gtk/gtklabel.h>
@@ -1470,17 +1471,13 @@ static void
prefs_clear_cache_button_clicked_cb (GtkWidget *button,
PrefsDialog *dialog)
{
- EphyEmbedShell *shell;
- EphyEmbedSingle *single;
- EphyFaviconCache *cache;
-
- shell = ephy_embed_shell_get_default ();
+ GtkWidget *parent;
- 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);
+ parent = ephy_dialog_get_control (EPHY_DIALOG (dialog),
+ properties[WINDOW_PROP].id);
+ pdm_dialog_show_clear_all_dialog (EPHY_DIALOG (dialog),
+ parent,
+ CLEAR_ALL_CACHE);
}
static void