diff options
author | Xan Lopez <xan@igalia.com> | 2012-03-14 19:32:18 +0800 |
---|---|---|
committer | Xan Lopez <xan@igalia.com> | 2012-03-14 19:45:07 +0800 |
commit | 4f4df6f74af2bd387857f81845bc53a55abbe460 (patch) | |
tree | be4d0534b1dc824684d77372429f373dbf978ddd | |
parent | d42586bb4a2fb45cad1fcc2cf7f6b49a423770cd (diff) | |
download | gsoc2013-epiphany-4f4df6f74af2bd387857f81845bc53a55abbe460.tar gsoc2013-epiphany-4f4df6f74af2bd387857f81845bc53a55abbe460.tar.gz gsoc2013-epiphany-4f4df6f74af2bd387857f81845bc53a55abbe460.tar.bz2 gsoc2013-epiphany-4f4df6f74af2bd387857f81845bc53a55abbe460.tar.lz gsoc2013-epiphany-4f4df6f74af2bd387857f81845bc53a55abbe460.tar.xz gsoc2013-epiphany-4f4df6f74af2bd387857f81845bc53a55abbe460.tar.zst gsoc2013-epiphany-4f4df6f74af2bd387857f81845bc53a55abbe460.zip |
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.
-rw-r--r-- | 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 3314e4271..915807187 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); |