[epiphany] ephy-web-view: we already have a reference to the history service



commit 3c4521680d8d06bbfa0ec878953fafe69ae84abb
Author: Xan Lopez <xan igalia com>
Date:   Thu Mar 15 09:43:45 2012 +0100

    ephy-web-view: we already have a reference to the history service
    
    Don't request the global instance again.

 embed/ephy-web-view.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index 48dfd22..689835a 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -1145,7 +1145,7 @@ title_changed_cb (WebKitWebView *web_view,
   const char *uri;
   char *title;
   WebKitWebFrame *frame;
-  EphyHistoryService *history = EPHY_HISTORY_SERVICE (ephy_embed_shell_get_global_history_service (ephy_embed_shell_get_default ()));
+  EphyHistoryService *history = EPHY_WEB_VIEW (web_view)->priv->history_service;
 
   frame = webkit_web_view_get_main_frame (web_view);
   uri = webkit_web_frame_get_uri (frame);



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