aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-03-23 22:22:44 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-03-23 22:22:44 +0800
commitaba12c7f7872706afcbb05e7f089e17fef132d7a (patch)
tree3b8840dffe5125a4ada1754d52e0b578923b3a9f /widgets
parent7f4874e7ce21129029ce1e4eb0de5ef238c4ca31 (diff)
downloadgsoc2013-evolution-aba12c7f7872706afcbb05e7f089e17fef132d7a.tar
gsoc2013-evolution-aba12c7f7872706afcbb05e7f089e17fef132d7a.tar.gz
gsoc2013-evolution-aba12c7f7872706afcbb05e7f089e17fef132d7a.tar.bz2
gsoc2013-evolution-aba12c7f7872706afcbb05e7f089e17fef132d7a.tar.lz
gsoc2013-evolution-aba12c7f7872706afcbb05e7f089e17fef132d7a.tar.xz
gsoc2013-evolution-aba12c7f7872706afcbb05e7f089e17fef132d7a.tar.zst
gsoc2013-evolution-aba12c7f7872706afcbb05e7f089e17fef132d7a.zip
Bug 613639 - Evolution hard codes .gnome2
Diffstat (limited to 'widgets')
-rw-r--r--widgets/misc/e-attachment-handler-image.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/widgets/misc/e-attachment-handler-image.c b/widgets/misc/e-attachment-handler-image.c
index d9d87d991f..770b1c552b 100644
--- a/widgets/misc/e-attachment-handler-image.c
+++ b/widgets/misc/e-attachment-handler-image.c
@@ -24,6 +24,8 @@
#include <glib/gi18n.h>
#include <gconf/gconf-client.h>
+#include <e-util/e-util.h>
+
#define E_ATTACHMENT_HANDLER_IMAGE_GET_PRIVATE(obj) \
(G_TYPE_INSTANCE_GET_PRIVATE \
((obj), E_TYPE_ATTACHMENT_HANDLER_IMAGE, EAttachmentHandlerImagePrivate))
@@ -115,7 +117,6 @@ action_image_set_as_background_cb (GtkAction *action,
EAttachment *attachment;
GFile *destination;
GList *selected;
- const gchar *override;
gchar *path;
view = e_attachment_handler_get_view (handler);
@@ -124,12 +125,8 @@ action_image_set_as_background_cb (GtkAction *action,
attachment = E_ATTACHMENT (selected->data);
/* Save the image under ~/.gnome2/wallpapers/. */
- override = g_getenv ("GNOME22_USER_DIR");
- if (override != NULL)
- path = g_build_filename (override, "wallpapers", NULL);
- else
- path = g_build_filename (
- g_get_home_dir (), ".gnome2", "wallpapers", NULL);
+ path = g_build_filename (
+ e_get_gnome2_user_dir (), "wallpapers", NULL);
destination = g_file_new_for_path (path);
g_mkdir_with_parents (path, 0755);
g_free (path);