diff options
author | Marco Pesenti Gritti <marco@gnome.org> | 2003-10-06 20:21:59 +0800 |
---|---|---|
committer | Marco Pesenti Gritti <marco@src.gnome.org> | 2003-10-06 20:21:59 +0800 |
commit | 14e3040722bdd3115777a6d4098fea87108a6f87 (patch) | |
tree | 8ed8a68fc74c67d46d7d0ebcb7c52df60ca81de2 /src | |
parent | 8bad6a3d1faa10662b08783e49ebb3f488762973 (diff) | |
download | gsoc2013-epiphany-14e3040722bdd3115777a6d4098fea87108a6f87.tar.gz gsoc2013-epiphany-14e3040722bdd3115777a6d4098fea87108a6f87.tar.zst gsoc2013-epiphany-14e3040722bdd3115777a6d4098fea87108a6f87.zip |
More granular filtering update
2003-10-06 Marco Pesenti Gritti <marco@gnome.org>
* src/ephy-history-window.c: (setup_filters),
(site_node_selected_cb), (search_entry_search_cb),
(time_optionmenu_changed_cb):
More granular filtering update
2003-10-06 Marco Pesenti Gritti <marco@gnome.org>
* embed/ephy-history.c: (update_host_on_child_remove),
(update_hosts), (page_removed_from_host_cb), (ephy_history_init),
(ephy_history_finalize):
Update host last visit when removing sites from it.
Diffstat (limited to 'src')
-rw-r--r-- | src/ephy-history-window.c | 33 |
1 files changed, 20 insertions, 13 deletions
diff --git a/src/ephy-history-window.c b/src/ephy-history-window.c index 596ac01da..5406e5895 100644 --- a/src/ephy-history-window.c +++ b/src/ephy-history-window.c @@ -937,24 +937,31 @@ add_by_word_filter (EphyHistoryWindow *editor, EphyNodeFilter *filter, int level } static void -setup_filters (EphyHistoryWindow *editor) +setup_filters (EphyHistoryWindow *editor, + gboolean pages, gboolean sites) { GDK_THREADS_ENTER (); - ephy_node_filter_empty (editor->priv->pages_filter); + if (pages) + { + ephy_node_filter_empty (editor->priv->pages_filter); - add_by_date_filter (editor, editor->priv->pages_filter, 0, NULL); - add_by_word_filter (editor, editor->priv->pages_filter, 1); - add_by_site_filter (editor, editor->priv->pages_filter, 2); + add_by_date_filter (editor, editor->priv->pages_filter, 0, NULL); + add_by_word_filter (editor, editor->priv->pages_filter, 1); + add_by_site_filter (editor, editor->priv->pages_filter, 2); - ephy_node_filter_done_changing (editor->priv->pages_filter); + ephy_node_filter_done_changing (editor->priv->pages_filter); + } - ephy_node_filter_empty (editor->priv->sites_filter); + if (sites) + { + ephy_node_filter_empty (editor->priv->sites_filter); - add_by_date_filter (editor, editor->priv->sites_filter, 0, - ephy_history_get_pages (editor->priv->history)); + add_by_date_filter (editor, editor->priv->sites_filter, 0, + ephy_history_get_pages (editor->priv->history)); - ephy_node_filter_done_changing (editor->priv->sites_filter); + ephy_node_filter_done_changing (editor->priv->sites_filter); + } GDK_THREADS_LEAVE (); } @@ -978,7 +985,7 @@ site_node_selected_cb (EphyNodeView *view, else { ephy_search_entry_clear (EPHY_SEARCH_ENTRY (editor->priv->search_entry)); - setup_filters (editor); + setup_filters (editor, TRUE, FALSE); } } @@ -1000,13 +1007,13 @@ search_entry_search_cb (GtkWidget *entry, char *search_text, EphyHistoryWindow * G_CALLBACK (site_node_selected_cb), editor); - setup_filters (editor); + setup_filters (editor, TRUE, FALSE); } static void time_optionmenu_changed_cb (GtkWidget *optionmenu, EphyHistoryWindow *editor) { - setup_filters (editor); + setup_filters (editor, TRUE, TRUE); } static GtkWidget * |