aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-10-02 22:23:18 +0800
committerChristian Persch <chpe@src.gnome.org>2004-10-02 22:23:18 +0800
commitb9bf149030bb5d3f141b1a05c6ac34a807b355a4 (patch)
tree4a629ddb6008bbde6861ca485a26df5a7f867b06 /embed
parent3ecbea1e22f2544b4f0e62bd23bb510f8730b53d (diff)
downloadgsoc2013-epiphany-b9bf149030bb5d3f141b1a05c6ac34a807b355a4.tar
gsoc2013-epiphany-b9bf149030bb5d3f141b1a05c6ac34a807b355a4.tar.gz
gsoc2013-epiphany-b9bf149030bb5d3f141b1a05c6ac34a807b355a4.tar.bz2
gsoc2013-epiphany-b9bf149030bb5d3f141b1a05c6ac34a807b355a4.tar.lz
gsoc2013-epiphany-b9bf149030bb5d3f141b1a05c6ac34a807b355a4.tar.xz
gsoc2013-epiphany-b9bf149030bb5d3f141b1a05c6ac34a807b355a4.tar.zst
gsoc2013-epiphany-b9bf149030bb5d3f141b1a05c6ac34a807b355a4.zip
Recognise "Desktop" special downloads directory. Fixes bug #152926.
2004-10-02 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/MozDownload.cpp: * lib/ephy-file-helpers.c: (ephy_file_downloads_dir), (ephy_file_desktop_dir): * lib/ephy-file-helpers.h: * src/prefs-dialog.c: (get_download_button_label): Recognise "Desktop" special downloads directory. Fixes bug #152926.
Diffstat (limited to 'embed')
-rw-r--r--embed/mozilla/MozDownload.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/embed/mozilla/MozDownload.cpp b/embed/mozilla/MozDownload.cpp
index 975b852ca..4e26b7347 100644
--- a/embed/mozilla/MozDownload.cpp
+++ b/embed/mozilla/MozDownload.cpp
@@ -590,6 +590,11 @@ GetFilePath (const char *filename)
g_free (download_dir);
download_dir = ephy_file_downloads_dir ();
}
+ else if (download_dir && strcmp (download_dir, "Desktop") == 0)
+ {
+ g_free (download_dir);
+ download_dir = ephy_file_desktop_dir ();
+ }
else if (download_dir)
{
char *converted_dp;