[epiphany/overview] ephy-frecent-store: do not show urls marked as hidden
- From: Claudio Saavedra <csaavedra src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/overview] ephy-frecent-store: do not show urls marked as hidden
- Date: Sun, 12 Aug 2012 16:48:07 +0000 (UTC)
commit 0bdf50949dcfa241bd49c15d719107baa4010d49
Author: Claudio Saavedra <csaavedra igalia com>
Date: Sun Aug 12 19:42:49 2012 +0300
ephy-frecent-store: do not show urls marked as hidden
For this, use a EphyHistoryQuery directly
src/ephy-frecent-store.c | 14 +++++++++++---
1 files changed, 11 insertions(+), 3 deletions(-)
---
diff --git a/src/ephy-frecent-store.c b/src/ephy-frecent-store.c
index 42c4431..4ef4993 100644
--- a/src/ephy-frecent-store.c
+++ b/src/ephy-frecent-store.c
@@ -89,9 +89,17 @@ static void
ephy_frecent_store_fetch_urls (EphyFrecentStore *store,
EphyHistoryService *service)
{
- ephy_history_service_find_urls (service, 0, 0, 5, 0, NULL, NULL,
- (EphyHistoryJobCallback) on_find_urls_cb,
- store);
+ EphyHistoryQuery *query;
+
+ query = ephy_history_query_new ();
+ query->sort_type = EPHY_HISTORY_SORT_MV;
+ query->limit = 5;
+ query->ignore_hidden = TRUE;
+
+ ephy_history_service_query_urls (service, query, NULL,
+ (EphyHistoryJobCallback) on_find_urls_cb,
+ store);
+ ephy_history_query_free (query);
}
static gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]