diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-07-23 07:24:53 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-07-27 14:16:53 +0800 |
commit | 51b74eee72ecf1323105f9c12942f2fe303ec7e1 (patch) | |
tree | c1753630859f8a1f07e258e121300416ebfc7476 /e-util/e-web-view.h | |
parent | 14b4291ebd16d3f9efddad49ec726d92edb258bc (diff) | |
download | gsoc2013-evolution-51b74eee72ecf1323105f9c12942f2fe303ec7e1.tar.gz gsoc2013-evolution-51b74eee72ecf1323105f9c12942f2fe303ec7e1.tar.zst gsoc2013-evolution-51b74eee72ecf1323105f9c12942f2fe303ec7e1.zip |
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.
Diffstat (limited to 'e-util/e-web-view.h')
-rw-r--r-- | e-util/e-web-view.h | 4 |
1 files changed, 4 insertions, 0 deletions
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); |