From 51b74eee72ecf1323105f9c12942f2fe303ec7e1 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Mon, 22 Jul 2013 19:24:53 -0400 Subject: Add e_web_view_redirect_uri(). Replaces the given URI with a redirected URI as necessary, primarily for use with custom SoupRequest handlers. Typically this function would be called just prior to handing a request off to a SoupSession, such as from a WebKitWebView "resource-request-starting" signal handler. Case in point: EMailDisplay now implements the redirect_uri() method, and calls it from its own "resource-request-starting" signal handler. --- e-util/e-web-view.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'e-util/e-web-view.h') diff --git a/e-util/e-web-view.h b/e-util/e-web-view.h index 9eec4956fd..d4b1db650d 100644 --- a/e-util/e-web-view.h +++ b/e-util/e-web-view.h @@ -80,6 +80,8 @@ struct _EWebViewClass { const gchar *load_string); void (*load_uri) (EWebView *web_view, const gchar *load_uri); + gchar * (*redirect_uri) (EWebView *web_view, + const gchar *uri); void (*set_fonts) (EWebView *web_view, PangoFontDescription **monospace, PangoFontDescription **variable_width); @@ -102,6 +104,8 @@ void e_web_view_load_string (EWebView *web_view, const gchar *string); void e_web_view_load_uri (EWebView *web_view, const gchar *uri); +gchar * e_web_view_redirect_uri (EWebView *web_view, + const gchar *uri); void e_web_view_reload (EWebView *web_view); gchar * e_web_view_get_html (EWebView *web_view); gboolean e_web_view_get_caret_mode (EWebView *web_view); -- cgit