summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormichelle legrand <michelle.legrand@openwide.fr>2015-01-09 17:09:19 +0100
committerCedric BAIL <cedric@osg.samsung.com>2015-03-26 18:04:38 +0100
commitedb803f01f117faa6f4555bd9a493bfb23229922 (patch)
treec016c6733700b1c5c753998252a76e809929d5df
parent969d921f6ab4d04aa39d9abff71d1c402138369e (diff)
elc_fileselector: fix looking for right Windows home path.
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
-rw-r--r--src/lib/elc_fileselector.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/lib/elc_fileselector.c b/src/lib/elc_fileselector.c
index c5d9a19bb..1ea2c01b9 100644
--- a/src/lib/elc_fileselector.c
+++ b/src/lib/elc_fileselector.c
@@ -17,6 +17,10 @@
17#include "elm_interface_fileselector.h" 17#include "elm_interface_fileselector.h"
18#include "elm_widget_fileselector.h" 18#include "elm_widget_fileselector.h"
19 19
20#ifdef HAVE_EVIL
21# include <Evil.h>
22#endif
23
20#define MY_CLASS ELM_FILESELECTOR_CLASS 24#define MY_CLASS ELM_FILESELECTOR_CLASS
21 25
22#define MY_CLASS_NAME "Elm_Fileselector" 26#define MY_CLASS_NAME "Elm_Fileselector"
@@ -988,8 +992,16 @@ _home(void *data,
988 void *event_info EINA_UNUSED) 992 void *event_info EINA_UNUSED)
989{ 993{
990 Evas_Object *fs = data; 994 Evas_Object *fs = data;
995 const char * path = NULL;
996
997#ifdef HAVE_EVIL
998 path = (char*)evil_homedir_get();
999#else
1000 path = getenv("HOME");
1001#endif
1002
991 1003
992 _populate(fs, getenv("HOME"), NULL, NULL); 1004 _populate(fs, path, NULL, NULL);
993} 1005}
994 1006
995static void 1007static void