[epiphany/wip/history-rewrite: 9/14] Allow ephy_history_service_find_urls() to filter host specific urls
- From: Xan Lopez <xan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/wip/history-rewrite: 9/14] Allow ephy_history_service_find_urls() to filter host specific urls
- Date: Tue, 6 Mar 2012 20:24:44 +0000 (UTC)
commit a76b3be958c50b3baba13fb4a9aedc17f35025c0
Author: Claudio Saavedra <csaavedra igalia com>
Date: Tue Mar 6 11:34:50 2012 +0200
Allow ephy_history_service_find_urls() to filter host specific urls
lib/history/ephy-history-service.c | 3 ++-
lib/history/ephy-history-service.h | 2 +-
src/ephy-completion-model.c | 2 +-
3 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/lib/history/ephy-history-service.c b/lib/history/ephy-history-service.c
index 26de9e4..53363bc 100644
--- a/lib/history/ephy-history-service.c
+++ b/lib/history/ephy-history-service.c
@@ -844,7 +844,7 @@ ephy_history_service_process_message (EphyHistoryService *self,
void
ephy_history_service_find_urls (EphyHistoryService *self,
gint64 from, gint64 to,
- guint limit,
+ guint limit, gint host,
GList *substring_list,
EphyHistoryJobCallback callback,
gpointer user_data)
@@ -858,6 +858,7 @@ ephy_history_service_find_urls (EphyHistoryService *self,
query->to = to;
query->substring_list = substring_list;
query->sort_type = EPHY_HISTORY_SORT_MV;
+ query->host = host;
if (limit != 0)
query->limit = limit;
diff --git a/lib/history/ephy-history-service.h b/lib/history/ephy-history-service.h
index c212d7d..c9632f8 100644
--- a/lib/history/ephy-history-service.h
+++ b/lib/history/ephy-history-service.h
@@ -69,7 +69,7 @@ void ephy_history_service_get_host_for_url (EphyHisto
void ephy_history_service_get_hosts (EphyHistoryService *self, EphyHistoryJobCallback callback, gpointer user_data);
void ephy_history_service_get_url (EphyHistoryService *self, const char *url, EphyHistoryJobCallback callback, gpointer user_data);
void ephy_history_service_delete_urls (EphyHistoryService *self, GList *urls, EphyHistoryJobCallback callback, gpointer user_data);
-void ephy_history_service_find_urls (EphyHistoryService *self, gint64 from, gint64 to, guint limit, GList *substring_list, EphyHistoryJobCallback callback, gpointer user_data);
+void ephy_history_service_find_urls (EphyHistoryService *self, gint64 from, gint64 to, guint limit, gint host, GList *substring_list, EphyHistoryJobCallback callback, gpointer user_data);
void ephy_history_service_visit_url (EphyHistoryService *self, const char *orig_url);
void ephy_history_service_clear (EphyHistoryService *self, EphyHistoryJobCallback callback, gpointer user_data);
diff --git a/src/ephy-completion-model.c b/src/ephy-completion-model.c
index 18def7d..ea60c2a 100644
--- a/src/ephy-completion-model.c
+++ b/src/ephy-completion-model.c
@@ -490,7 +490,7 @@ ephy_completion_model_update_for_string (EphyCompletionModel *model,
ephy_history_service_find_urls (priv->history_service,
0, 0,
- MAX_COMPLETION_HISTORY_URLS,
+ MAX_COMPLETION_HISTORY_URLS, 0,
query,
(EphyHistoryJobCallback)query_completed_cb,
user_data);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]