summaryrefslogtreecommitdiff
path: root/src/lib/elc_fileselector.c
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2015-07-22 13:01:12 +0200
committerTom Hacohen <tom@stosb.com>2015-07-22 14:24:36 +0100
commitbd1d4427b8294ea2b435d5171603c836cc627e41 (patch)
tree9f34aea874d7fed0dc8655c89eabfdede6632a98 /src/lib/elc_fileselector.c
parente921412f2ae41b2bfe856aefd4175ab5889a7e17 (diff)
downloadelementary-bd1d4427b8294ea2b435d5171603c836cc627e41.tar.gz
Fileselector: Use eina_environment_home_get() instead of getenv("HOME")
Diffstat (limited to 'src/lib/elc_fileselector.c')
-rw-r--r--src/lib/elc_fileselector.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/lib/elc_fileselector.c b/src/lib/elc_fileselector.c
index eb6636881..d541c5f1d 100644
--- a/src/lib/elc_fileselector.c
+++ b/src/lib/elc_fileselector.c
@@ -17,10 +17,6 @@
#include "elm_interface_fileselector.h"
#include "elm_widget_fileselector.h"
-#ifdef HAVE_EVIL
-# include <Evil.h>
-#endif
-
#define MY_CLASS ELM_FILESELECTOR_CLASS
#define MY_CLASS_NAME "Elm_Fileselector"
@@ -1012,16 +1008,8 @@ _home(void *data,
void *event_info EINA_UNUSED)
{
Evas_Object *fs = data;
- const char * path = NULL;
-
-#ifdef HAVE_EVIL
- path = (char*)evil_homedir_get();
-#else
- path = getenv("HOME");
-#endif
-
- _populate(fs, path, NULL, NULL);
+ _populate(fs, eina_environment_home_get(), NULL, NULL);
return EINA_TRUE;
}