[epiphany/history-rewrite: 10/45] Rename EphyHistoryPageVisitType enum members to conform with GLib conventions.



commit 9573e0639222024073beaff485ecd436764b0b7a
Author: Martin Robinson <mrobinson igalia com>
Date:   Fri May 13 15:54:27 2011 -0700

    Rename EphyHistoryPageVisitType enum members to conform with GLib conventions.

 lib/history/ephy-history-types.h |    2 +-
 tests/ephy-history.c             |   10 +++++-----
 2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/lib/history/ephy-history-types.h b/lib/history/ephy-history-types.h
index 1a5c70f..4b10f66 100644
--- a/lib/history/ephy-history-types.h
+++ b/lib/history/ephy-history-types.h
@@ -27,7 +27,7 @@ G_BEGIN_DECLS
  */
 typedef enum {
   EPHY_PAGE_VISIT_LINK,
-  EPHY_PAGE_VISIT_TYPE,
+  EPHY_PAGE_VISIT_TYPED,
   EPHY_PAGE_VISIT_MANUAL_SUBFRAME,
   EPHY_PAGE_VISIT_AUTO_SUBFRAME,
   EPHY_PAGE_VISIT_STARTUP,
diff --git a/tests/ephy-history.c b/tests/ephy-history.c
index 177a8ea..bd2dcfa 100644
--- a/tests/ephy-history.c
+++ b/tests/ephy-history.c
@@ -84,7 +84,7 @@ test_create_history_entry (void)
   gchar *temporary_file = g_build_filename (g_get_tmp_dir (), "epiphany-history-test.db", NULL);
   EphyHistoryService *service = ensure_empty_history(temporary_file);
 
-  EphyHistoryPageVisit *visit = ephy_history_page_visit_new ("http://www.gnome.org";, 0, EphyPageVisitTypeTyped);
+  EphyHistoryPageVisit *visit = ephy_history_page_visit_new ("http://www.gnome.org";, 0, EPHY_PAGE_VISIT_TYPED);
   ephy_history_service_add_visit (service, visit, page_vist_created, NULL);
   ephy_history_page_visit_free (visit);
 
@@ -97,10 +97,10 @@ create_test_page_visit_list ()
   GList *visits = NULL;
   int i;
   for (i = 0; i < 100; i++) {
-    visits = g_list_append (visits, ephy_history_page_visit_new ("http://www.gnome.org";, 3, EphyPageVisitTypeTyped));
-    visits = g_list_append (visits, ephy_history_page_visit_new ("http://www.gnome.org";, 5, EphyPageVisitTypeTyped));
-    visits = g_list_append (visits, ephy_history_page_visit_new ("http://www.cuteoverload.com";, 7, EphyPageVisitTypeTyped));
-    visits = g_list_append (visits, ephy_history_page_visit_new ("http://www.cuteoverload.com";, 8, EphyPageVisitTypeTyped));
+    visits = g_list_append (visits, ephy_history_page_visit_new ("http://www.gnome.org";, 3, EPHY_PAGE_VISIT_TYPED));
+    visits = g_list_append (visits, ephy_history_page_visit_new ("http://www.gnome.org";, 5, EPHY_PAGE_VISIT_TYPED));
+    visits = g_list_append (visits, ephy_history_page_visit_new ("http://www.cuteoverload.com";, 7, EPHY_PAGE_VISIT_TYPED));
+    visits = g_list_append (visits, ephy_history_page_visit_new ("http://www.cuteoverload.com";, 8, EPHY_PAGE_VISIT_TYPED));
   }
   return visits;
 }



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