diff options
author | Marco Pesenti Gritti <marco@it.gnome.org> | 2003-02-06 19:18:05 +0800 |
---|---|---|
committer | Marco Pesenti Gritti <mpeseng@src.gnome.org> | 2003-02-06 19:18:05 +0800 |
commit | 415411682db49f95b121d27e94d3918445d391bf (patch) | |
tree | eb370ff9ed68eb4e3754411c580aa2b8de297b94 | |
parent | 22b5564396f1f0bb07ec810e3238697edf62564e (diff) | |
download | gsoc2013-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.
-rw-r--r-- | ChangeLog | 13 | ||||
-rw-r--r-- | lib/widgets/ephy-location-entry.c | 6 | ||||
-rw-r--r-- | lib/widgets/ephy-location-entry.h | 1 | ||||
-rwxr-xr-x | src/history-dialog.c | 15 | ||||
-rwxr-xr-x | src/toolbar.c | 15 | ||||
-rw-r--r-- | src/toolbar.h | 2 |
6 files changed, 52 insertions, 0 deletions
@@ -1,3 +1,16 @@ +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. + 2003-02-05 James Willcox <jwillcox@gnome.org> * src/bookmarks/ephy-bookmarks-import.c: (xbel_parse_folder), diff --git a/lib/widgets/ephy-location-entry.c b/lib/widgets/ephy-location-entry.c index 545c3bcaa..2c7f96ed8 100644 --- a/lib/widgets/ephy-location-entry.c +++ b/lib/widgets/ephy-location-entry.c @@ -716,3 +716,9 @@ ephy_location_entry_set_autocompletion_key (EphyLocationEntry *e) } } +void +ephy_location_entry_clear_history (EphyLocationEntry *w) +{ + gnome_entry_clear_history (GNOME_ENTRY (w->priv->combo)); +} + diff --git a/lib/widgets/ephy-location-entry.h b/lib/widgets/ephy-location-entry.h index d292ffb0c..c56a25cc7 100644 --- a/lib/widgets/ephy-location-entry.h +++ b/lib/widgets/ephy-location-entry.h @@ -70,5 +70,6 @@ gchar *ephy_location_entry_get_location (EphyLocationEntry *w); void ephy_location_entry_set_autocompletion (EphyLocationEntry *w, EphyAutocompletion *ac); void ephy_location_entry_activate (EphyLocationEntry *w); +void ephy_location_entry_clear_history (EphyLocationEntry *w); #endif 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); } diff --git a/src/toolbar.c b/src/toolbar.c index 1df62677c..5ae01edc2 100755 --- a/src/toolbar.c +++ b/src/toolbar.c @@ -469,6 +469,21 @@ toolbar_get_location (Toolbar *t) } void +toolbar_clear_location_history (Toolbar *t) +{ + EggAction *action; + GtkWidget *location; + + action = egg_action_group_get_action + (t->priv->action_group, "Location"); + location = ephy_location_action_get_widget + (EPHY_LOCATION_ACTION (action)); + g_return_if_fail (location != NULL); + + ephy_location_entry_clear_history (EPHY_LOCATION_ENTRY (location)); +} + +void toolbar_update_navigation_actions (Toolbar *t, gboolean back, gboolean forward, gboolean up) { EggActionGroup *action_group; diff --git a/src/toolbar.h b/src/toolbar.h index 649156165..ac98f94c4 100644 --- a/src/toolbar.h +++ b/src/toolbar.h @@ -63,6 +63,8 @@ void toolbar_set_location (Toolbar *t, void toolbar_activate_location (Toolbar *t); +void toolbar_clear_location_history (Toolbar *t); + void toolbar_update_favicon (Toolbar *t); void toolbar_update_navigation_actions (Toolbar *t, |