aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-10-02 22:25:00 +0800
committerChristian Persch <chpe@src.gnome.org>2004-10-02 22:25:00 +0800
commit5d5a8b49ca1742cc34161ba73287540f779795a5 (patch)
treefcccf2693cdf8ca82c44003184d5fc9f1f624e6e /embed
parent59c38b2fabd382321fbcf1e4a8db70c8c59016ec (diff)
downloadgsoc2013-epiphany-5d5a8b49ca1742cc34161ba73287540f779795a5.tar.gz
gsoc2013-epiphany-5d5a8b49ca1742cc34161ba73287540f779795a5.tar.zst
gsoc2013-epiphany-5d5a8b49ca1742cc34161ba73287540f779795a5.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 c615f8be1..a70daf0c8 100644
--- a/embed/mozilla/MozDownload.cpp
+++ b/embed/mozilla/MozDownload.cpp
@@ -600,6 +600,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;