aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Escalante Urrelo <diegoe@igalia.com>2012-06-01 10:39:37 +0800
committerDiego Escalante Urrelo <diegoe@igalia.com>2012-06-15 07:44:08 +0800
commitd2d47f45c2eac3ea3c6626df0143482aa0179878 (patch)
treefd19312983109d35a892726d8f478086d99073d2
parent820a1e5c39b562e393ce7de031cd17b819460829 (diff)
downloadgsoc2013-epiphany-d2d47f45c2eac3ea3c6626df0143482aa0179878.tar.gz
gsoc2013-epiphany-d2d47f45c2eac3ea3c6626df0143482aa0179878.tar.zst
gsoc2013-epiphany-d2d47f45c2eac3ea3c6626df0143482aa0179878.zip
popup-commands: use g_get_user_special_dir API
"Pictures" was hardcoded as the destination folder, use G_USER_DIRECTORY_PICTURES instead. https://bugzilla.gnome.org/show_bug.cgi?id=677240
-rw-r--r--src/popup-commands.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/popup-commands.c b/src/popup-commands.c
index 079dc5935..ff6ee1ffe 100644
--- a/src/popup-commands.c
+++ b/src/popup-commands.c
@@ -328,7 +328,7 @@ popup_cmd_set_image_as_background (GtkAction *action,
base = g_path_get_basename (location);
base_converted = g_filename_from_utf8 (base, -1, NULL, NULL, NULL);
- dest = g_build_filename (g_get_home_dir (), "Pictures", base_converted, NULL);
+ dest = g_build_filename (g_get_user_special_dir (G_USER_DIRECTORY_PICTURES), base_converted, NULL);
dest_uri = g_filename_to_uri (dest, NULL, NULL);
ephy_download_set_destination_uri (download, dest_uri);