diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-07-27 13:49:59 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-07-28 03:27:09 +0800 |
commit | 69837f33cc6701043c9bbef2005c3c8281d5980e (patch) | |
tree | 7027303ba875f204a526b4e87702e036b8272662 /e-util/e-web-view.h | |
parent | 51b74eee72ecf1323105f9c12942f2fe303ec7e1 (diff) | |
download | gsoc2013-evolution-69837f33cc6701043c9bbef2005c3c8281d5980e.tar gsoc2013-evolution-69837f33cc6701043c9bbef2005c3c8281d5980e.tar.gz gsoc2013-evolution-69837f33cc6701043c9bbef2005c3c8281d5980e.tar.bz2 gsoc2013-evolution-69837f33cc6701043c9bbef2005c3c8281d5980e.tar.lz gsoc2013-evolution-69837f33cc6701043c9bbef2005c3c8281d5980e.tar.xz gsoc2013-evolution-69837f33cc6701043c9bbef2005c3c8281d5980e.tar.zst gsoc2013-evolution-69837f33cc6701043c9bbef2005c3c8281d5980e.zip |
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.
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 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); |