aboutsummaryrefslogtreecommitdiffstats
path: root/src/history-dialog.c
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@it.gnome.org>2003-02-06 19:18:05 +0800
committerMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-02-06 19:18:05 +0800
commit415411682db49f95b121d27e94d3918445d391bf (patch)
treeeb370ff9ed68eb4e3754411c580aa2b8de297b94 /src/history-dialog.c
parent22b5564396f1f0bb07ec810e3238697edf62564e (diff)
downloadgsoc2013-epiphany-415411682db49f95b121d27e94d3918445d391bf.tar
gsoc2013-epiphany-415411682db49f95b121d27e94d3918445d391bf.tar.gz
gsoc2013-epiphany-415411682db49f95b121d27e94d3918445d391bf.tar.bz2
gsoc2013-epiphany-415411682db49f95b121d27e94d3918445d391bf.tar.lz
gsoc2013-epiphany-415411682db49f95b121d27e94d3918445d391bf.tar.xz
gsoc2013-epiphany-415411682db49f95b121d27e94d3918445d391bf.tar.zst
gsoc2013-epiphany-415411682db49f95b121d27e94d3918445d391bf.zip
Clear also location history when clearing history. Doesnt update
2003-02-06 Marco Pesenti Gritti <marco@it.gnome.org> * lib/widgets/ephy-location-entry.c: (ephy_location_entry_clear_history): * lib/widgets/ephy-location-entry.h: * src/history-dialog.c: (history_clear_button_clicked_cb): * src/toolbar.c: (toolbar_clear_location_history): * src/toolbar.h: Clear also location history when clearing history. Doesnt update immediately, gtk/gnome bug, will submit patches.
Diffstat (limited to 'src/history-dialog.c')
-rwxr-xr-xsrc/history-dialog.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/history-dialog.c b/src/history-dialog.c
index 3ac3be2c7..4c32327a3 100755
--- a/src/history-dialog.c
+++ b/src/history-dialog.c
@@ -27,6 +27,7 @@
#include "eggtreemodelfilter.h"
#include "eggtreemultidnd.h"
#include "ephy-tree-model-sort.h"
+#include "toolbar.h"
#include <gtk/gtktreeview.h>
#include <gtk/gtktreestore.h>
@@ -474,5 +475,19 @@ void
history_clear_button_clicked_cb (GtkWidget *button,
HistoryDialog *dialog)
{
+ const GList *windows;
+ Session *session;
+
+ session = ephy_shell_get_session (ephy_shell);
+ windows = session_get_windows (session);
+
+ for (; windows != NULL; windows = windows->next)
+ {
+ Toolbar *t;
+
+ t = ephy_window_get_toolbar (EPHY_WINDOW (windows->data));
+ toolbar_clear_location_history (t);
+ }
+
ephy_history_clear (dialog->priv->gh);
}