[epiphany] Use EphyBrowseHistory to store page titles



commit 28d99a055c87d0b224ee8dadd3f8c95b50ce43d0
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 6d082b4..9b43288 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]