[epiphany: 8/14] ephy-web-view: get a reference to the history service



commit 4f4df6f74af2bd387857f81845bc53a55abbe460
Author: Xan Lopez <xan igalia com>
Date:   Wed Mar 14 12:32:18 2012 +0100

    ephy-web-view: get a reference to the history service
    
    We are going to move stuff from embed to webview, so we'll need this.

 embed/ephy-web-view.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index 3314e42..9158071 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -105,6 +105,7 @@ struct _EphyWebViewPrivate {
 
   GtkWidget *password_info_bar;
 
+  EphyHistoryService *history_service;
   EphyHistoryPageVisitType visit_type;
 };
 
@@ -2222,6 +2223,8 @@ ephy_web_view_init (EphyWebView *web_view)
   priv->non_search_regex = g_regex_new (EPHY_WEB_VIEW_NON_SEARCH_REGEX,
                                         G_REGEX_OPTIMIZE, G_REGEX_MATCH_NOTEMPTY, NULL);
 
+  priv->history_service = EPHY_HISTORY_SERVICE (ephy_embed_shell_get_global_history_service (embed_shell));
+
   g_signal_connect (web_view, "mime-type-policy-decision-requested",
                     G_CALLBACK (mime_type_policy_decision_requested_cb),
                     NULL);



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