[epiphany/history-rewrite] ephy-history-service: Factor code out from ephy_history_service_find_visits_in_time()



commit 64ecb563283272de2eeeff0e32739cb0c0cca0f8
Author: Claudio Saavedra <csaavedra igalia com>
Date:   Mon Jul 18 16:42:28 2011 +0300

    ephy-history-service: Factor code out from ephy_history_service_find_visits_in_time()

 lib/history/ephy-history-service.c |   11 ++---------
 1 files changed, 2 insertions(+), 9 deletions(-)
---
diff --git a/lib/history/ephy-history-service.c b/lib/history/ephy-history-service.c
index 8fb274b..fccda0e 100644
--- a/lib/history/ephy-history-service.c
+++ b/lib/history/ephy-history-service.c
@@ -495,19 +495,12 @@ ephy_history_service_add_visits (EphyHistoryService *self, GList *visits, EphyHi
 void
 ephy_history_service_find_visits_in_time (EphyHistoryService *self, gint64 from, gint64 to, EphyHistoryJobCallback callback, gpointer user_data)
 {
-  EphyHistoryThreadJobDetails *details;
-
   EphyHistoryQuery *query = ephy_history_query_new ();
   query->from = from;
   query->to = to;
 
-  details = ephy_history_thread_job_details_new (self, 
-                                                 (EphyHistoryJobMethod) ephy_history_service_execute_find_visits,
-                                                 query, (GDestroyNotify) ephy_history_query_free, callback, user_data);
-  ephy_history_service_schedule_idle (self, G_PRIORITY_DEFAULT, 
-                                      ephy_history_service_execute_job_on_history_thread, 
-                                      details);
-
+  ephy_history_service_query_visits (self, query, callback, user_data);
+  ephy_history_query_free (query);
 }
 
 void



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]