From 69837f33cc6701043c9bbef2005c3c8281d5980e Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Sat, 27 Jul 2013 01:49:59 -0400 Subject: Add e_web_view_suggest_filename(). Attempts to derive a suggested filename from the given URI for use in a "Save As" dialog. By default the suggested filename is the last path segment of the given URI (the unless the given URI looks like a query), but subclasses can use other mechanisms for custom URI schemes. For example, "cid:" URIs in an email message may refer to a MIME part with a suggested filename in its Content-Disposition header. --- 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 d4b1db650d..df338abd71 100644 --- a/e-util/e-web-view.h +++ b/e-util/e-web-view.h @@ -82,6 +82,8 @@ struct _EWebViewClass { const gchar *load_uri); gchar * (*redirect_uri) (EWebView *web_view, const gchar *uri); + gchar * (*suggest_filename) (EWebView *web_view, + const gchar *uri); void (*set_fonts) (EWebView *web_view, PangoFontDescription **monospace, PangoFontDescription **variable_width); @@ -106,6 +108,8 @@ void e_web_view_load_uri (EWebView *web_view, const gchar *uri); gchar * e_web_view_redirect_uri (EWebView *web_view, const gchar *uri); +gchar * e_web_view_suggest_filename (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 v1.2.3