elc_fileselector: fix looking for right Windows home path.
authormichelle legrand <michelle.legrand@openwide.fr>
Fri, 9 Jan 2015 16:09:19 +0000 (17:09 +0100)
committerCedric BAIL <cedric@osg.samsung.com>
Thu, 26 Mar 2015 17:04:38 +0000 (18:04 +0100)
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
src/lib/elc_fileselector.c

index c5d9a19..1ea2c01 100644 (file)
 #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"
@@ -988,8 +992,16 @@ _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, getenv("HOME"), NULL, NULL);
+   _populate(fs, path, NULL, NULL);
 }
 
 static void