diff options
author | Diego Escalante Urrelo <diegoe@igalia.com> | 2012-06-01 10:39:37 +0800 |
---|---|---|
committer | Diego Escalante Urrelo <diegoe@igalia.com> | 2012-06-15 07:44:08 +0800 |
commit | d2d47f45c2eac3ea3c6626df0143482aa0179878 (patch) | |
tree | fd19312983109d35a892726d8f478086d99073d2 /src | |
parent | 820a1e5c39b562e393ce7de031cd17b819460829 (diff) | |
download | gsoc2013-epiphany-d2d47f45c2eac3ea3c6626df0143482aa0179878.tar gsoc2013-epiphany-d2d47f45c2eac3ea3c6626df0143482aa0179878.tar.gz gsoc2013-epiphany-d2d47f45c2eac3ea3c6626df0143482aa0179878.tar.bz2 gsoc2013-epiphany-d2d47f45c2eac3ea3c6626df0143482aa0179878.tar.lz gsoc2013-epiphany-d2d47f45c2eac3ea3c6626df0143482aa0179878.tar.xz 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
Diffstat (limited to 'src')
-rw-r--r-- | src/popup-commands.c | 2 |
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); |