elc_fileselector: fix looking for right Windows home path.

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
michelle legrand 2015-01-09 17:09:19 +01:00 committed by Cedric BAIL
parent d48b15b2fd
commit 6f86fb5fb0
1 changed files with 13 additions and 1 deletions

View File

@ -17,6 +17,10 @@
#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;
_populate(fs, getenv("HOME"), NULL, NULL);
#ifdef HAVE_EVIL
path = (char*)evil_homedir_get();
#else
path = getenv("HOME");
#endif
_populate(fs, path, NULL, NULL);
}
static void