From 3c4521680d8d06bbfa0ec878953fafe69ae84abb Mon Sep 17 00:00:00 2001 From: Xan Lopez Date: Thu, 15 Mar 2012 09:43:45 +0100 Subject: 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 file changed, 1 insertion(+), 1 deletion(-) (limited to 'embed') diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c index 48dfd225a..689835af9 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); -- cgit