[epiphany/history-rewrite-second: 16/26] Use EphyBrowseHistory to store page titles



commit f6aad6d4ef1efe7f9a7653ddcb18a74aa1b4999e
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 8599f76..2f7263e 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -24,6 +24,7 @@
 #include "ephy-web-view.h"
 
 #include "ephy-debug.h"
+#include "ephy-browse-history.h"
 #include "ephy-embed-container.h"
 #include "ephy-embed-prefs.h"
 #include "ephy-embed-shell.h"
@@ -1065,7 +1066,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);
 
@@ -1074,9 +1075,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]