[epiphany] popup-commands: use g_get_user_special_dir API
- From: Diego Escalante Urrelo <diegoe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] popup-commands: use g_get_user_special_dir API
- Date: Thu, 14 Jun 2012 23:44:20 +0000 (UTC)
commit d2d47f45c2eac3ea3c6626df0143482aa0179878
Author: Diego Escalante Urrelo <diegoe igalia com>
Date: Thu May 31 21:39:37 2012 -0500
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
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 079dc59..ff6ee1f 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]