aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorCarlos Garcia Campos <cgarcia@igalia.com>2012-08-16 16:46:42 +0800
committerCarlos Garcia Campos <carlosgc@gnome.org>2012-08-17 19:58:51 +0800
commitcf9c1a366b1424ee55e621302c5cba02803832a8 (patch)
treeb9ea2e48243f6e18728e43501f1027f24b522f5e /src
parent12b8cab14f3cb4c09e5ee8afb9b438113b5bd72e (diff)
downloadgsoc2013-epiphany-cf9c1a366b1424ee55e621302c5cba02803832a8.tar
gsoc2013-epiphany-cf9c1a366b1424ee55e621302c5cba02803832a8.tar.gz
gsoc2013-epiphany-cf9c1a366b1424ee55e621302c5cba02803832a8.tar.bz2
gsoc2013-epiphany-cf9c1a366b1424ee55e621302c5cba02803832a8.tar.lz
gsoc2013-epiphany-cf9c1a366b1424ee55e621302c5cba02803832a8.tar.xz
gsoc2013-epiphany-cf9c1a366b1424ee55e621302c5cba02803832a8.tar.zst
gsoc2013-epiphany-cf9c1a366b1424ee55e621302c5cba02803832a8.zip
Port save as to WebKit2
Use webkit_web_view_save() API for HTML pages that saves the web page into a MHTML file. For any other MIME types supported by the web view, save the main resource data to a file. https://bugzilla.gnome.org/show_bug.cgi?id=679368
Diffstat (limited to 'src')
-rw-r--r--src/window-commands.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/window-commands.c b/src/window-commands.c
index c1e1d78c6..0a6c464cf 100644
--- a/src/window-commands.c
+++ b/src/window-commands.c
@@ -302,8 +302,12 @@ get_suggested_filename (EphyWebView *view)
if ((g_ascii_strncasecmp (mimetype, "text/html", 9)) == 0)
{
- /* Web Title will be used as suggested filename*/
+ /* Web Title will be used as suggested filename */
+#ifdef HAVE_WEBKIT2
+ suggested_filename = g_strconcat (ephy_web_view_get_title (view), ".mhtml", NULL);
+#else
suggested_filename = g_strconcat (ephy_web_view_get_title (view), ".html", NULL);
+#endif
}
else
{