[epiphany] Rename ephy_history_service_add_page to ephy_history_service_visit_url



commit 7c6abe5cb07313cf8cd57d34c8fc8d26dfcf1203
Author: Xan Lopez <xan igalia com>
Date:   Mon Mar 5 17:04:37 2012 +0100

    Rename ephy_history_service_add_page to ephy_history_service_visit_url
    
    Fits much better with the naming model in that class.

 embed/ephy-embed.c                 |    2 +-
 lib/history/ephy-history-service.c |    7 +++++--
 lib/history/ephy-history-service.h |    2 +-
 3 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/embed/ephy-embed.c b/embed/ephy-embed.c
index a64f154..fa355b4 100644
--- a/embed/ephy-embed.c
+++ b/embed/ephy-embed.c
@@ -339,7 +339,7 @@ load_status_changed_cb (WebKitWebView *view,
     else
       history_uri = g_strdup (uri);
 
-    ephy_history_service_add_page (embed->priv->history_service, history_uri);
+    ephy_history_service_visit_url (embed->priv->history_service, history_uri);
     g_free (history_uri);
   }
 }
diff --git a/lib/history/ephy-history-service.c b/lib/history/ephy-history-service.c
index b8bd2c2..0677bfb 100644
--- a/lib/history/ephy-history-service.c
+++ b/lib/history/ephy-history-service.c
@@ -738,11 +738,14 @@ ephy_history_service_find_urls (EphyHistoryService *self,
 }
 
 void
-ephy_history_service_add_page (EphyHistoryService *self,
-                               const char *url)
+ephy_history_service_visit_url (EphyHistoryService *self,
+                                const char *url)
 {
   EphyHistoryPageVisit *visit;
 
+  g_return_if_fail (EPHY_IS_HISTORY_SERVICE (self));
+  g_return_if_fail (url != NULL);
+
   visit = ephy_history_page_visit_new (url,
                                        time (NULL),
                                        EPHY_PAGE_VISIT_TYPED);
diff --git a/lib/history/ephy-history-service.h b/lib/history/ephy-history-service.h
index 049b3cd..9d8ed2f 100644
--- a/lib/history/ephy-history-service.h
+++ b/lib/history/ephy-history-service.h
@@ -65,7 +65,7 @@ void                     ephy_history_service_get_host_for_url        (EphyHisto
 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_add_page                (EphyHistoryService *self, const char *orig_url);
+void                     ephy_history_service_visit_url               (EphyHistoryService *self, const char *orig_url);
 
 G_END_DECLS
 



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