diff options
Diffstat (limited to 'src/history-dialog.c')
-rwxr-xr-x | src/history-dialog.c | 15 |
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); } |