[epiphany/history-rewrite] Use EphyBrowseHistory to store page titles



commit 47eb3dd0bf51709e7cde5ca48bbe3a780a60586a
Author: Claudio Saavedra <csaavedra igalia com>
Date:   Fri Aug 26 14:46:09 2011 +0300

    Use EphyBrowseHistory to store page titles

 embed/ephy-web-view.c |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index fd45772..2695d4e 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -43,6 +43,7 @@
 #include "ephy-profile-utils.h"
 #include "ephy-favicon-cache.h"
 #include "ephy-history.h"
+#include "ephy-browse-history.h"
 #include "ephy-request-about.h"
 #include "ephy-settings.h"
 #include "ephy-string.h"
@@ -1057,7 +1058,7 @@ title_changed_cb (WebKitWebView *web_view,
   const char *uri;
   char *title;
   WebKitWebFrame *frame;
-  EphyHistory *history = EPHY_HISTORY (ephy_embed_shell_get_global_history (ephy_embed_shell_get_default ()));
+  EphyBrowseHistory *browse_history = EPHY_BROWSE_HISTORY (ephy_embed_shell_get_global_browse_history (ephy_embed_shell_get_default ()));
 
   g_object_get (web_view, "title", &title, NULL);
 
@@ -1066,9 +1067,7 @@ title_changed_cb (WebKitWebView *web_view,
 
   frame = webkit_web_view_get_main_frame (web_view);
   uri = webkit_web_frame_get_uri (frame);
-  ephy_history_set_page_title (history,
-                               uri,
-                               title);
+  ephy_browse_history_set_page_title (browse_history, uri, title);
   g_free (title);
 
 }



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