[epiphany] window-commands: suggest the right name in 'Save As'
- From: Xan Lopez <xan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] window-commands: suggest the right name in 'Save As'
- Date: Thu, 2 Aug 2012 10:09:05 +0000 (UTC)
commit 8a38c7a9ba0238092edc4e398ca7635bb4392c5f
Author: Xan Lopez <xan igalia com>
Date: Thu Aug 2 12:04:28 2012 +0200
window-commands: suggest the right name in 'Save As'
Use the info in the Content-Disposition header instead of the base
name of the resource.
https://bugzilla.gnome.org/show_bug.cgi?id=674291
src/window-commands.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/window-commands.c b/src/window-commands.c
index da8a2f9..5a4d211 100644
--- a/src/window-commands.c
+++ b/src/window-commands.c
@@ -307,9 +307,8 @@ get_suggested_filename (EphyWebView *view)
}
else
{
- SoupURI *soup_uri = soup_uri_new (webkit_web_resource_get_uri (web_resource));
- suggested_filename = g_path_get_basename (soup_uri->path);
- soup_uri_free (soup_uri);
+ WebKitNetworkResponse *response = webkit_web_frame_get_network_response (frame);
+ suggested_filename = g_strdup (webkit_network_response_get_suggested_filename (response));
}
return suggested_filename;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]