[epiphany/history-rewrite-second] EphyBrowseHistory: add a host parameter to the find() method



commit 5d1d8dc0f139dc0048cb7e68ca6e820df4fd544b
Author: Claudio Saavedra <csaavedra igalia com>
Date:   Fri Mar 2 21:30:15 2012 +0200

    EphyBrowseHistory: add a host parameter to the find() method

 embed/ephy-browse-history.c |    3 ++-
 embed/ephy-browse-history.h |    1 +
 src/ephy-completion-model.c |    2 +-
 3 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/embed/ephy-browse-history.c b/embed/ephy-browse-history.c
index c6a0669..011dd67 100644
--- a/embed/ephy-browse-history.c
+++ b/embed/ephy-browse-history.c
@@ -135,7 +135,7 @@ ephy_browse_history_get_url (EphyBrowseHistory *history,
 void
 ephy_browse_history_find_urls (EphyBrowseHistory *history,
                                gint64 from, gint64 to,
-                               guint limit,
+                               guint limit, gint host,
                                GList *substring_list,
                                EphyHistoryJobCallback callback,
                                gpointer user_data)
@@ -149,6 +149,7 @@ ephy_browse_history_find_urls (EphyBrowseHistory *history,
   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/embed/ephy-browse-history.h b/embed/ephy-browse-history.h
index bbab28c..a1fa080 100644
--- a/embed/ephy-browse-history.h
+++ b/embed/ephy-browse-history.h
@@ -69,6 +69,7 @@ void               ephy_browse_history_find_urls           (EphyBrowseHistory
                                                             gint64                  from,
                                                             gint64                  to,
                                                             guint                   limit,
+                                                            gint                    host,
                                                             GList                  *substring_list,
                                                             EphyHistoryJobCallback  callback,
                                                             gpointer                user_data);
diff --git a/src/ephy-completion-model.c b/src/ephy-completion-model.c
index 09873b2..7b05750 100644
--- a/src/ephy-completion-model.c
+++ b/src/ephy-completion-model.c
@@ -573,7 +573,7 @@ ephy_completion_model_update_for_string (EphyCompletionModel *model,
 
   ephy_browse_history_find_urls (priv->browse_history,
                                  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]