forked from enlightenment/efl
elc_fileselector: fix looking for right Windows home path.
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
parent
d48b15b2fd
commit
6f86fb5fb0
|
@ -17,6 +17,10 @@
|
||||||
#include "elm_interface_fileselector.h"
|
#include "elm_interface_fileselector.h"
|
||||||
#include "elm_widget_fileselector.h"
|
#include "elm_widget_fileselector.h"
|
||||||
|
|
||||||
|
#ifdef HAVE_EVIL
|
||||||
|
# include <Evil.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#define MY_CLASS ELM_FILESELECTOR_CLASS
|
#define MY_CLASS ELM_FILESELECTOR_CLASS
|
||||||
|
|
||||||
#define MY_CLASS_NAME "Elm_Fileselector"
|
#define MY_CLASS_NAME "Elm_Fileselector"
|
||||||
|
@ -988,8 +992,16 @@ _home(void *data,
|
||||||
void *event_info EINA_UNUSED)
|
void *event_info EINA_UNUSED)
|
||||||
{
|
{
|
||||||
Evas_Object *fs = data;
|
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
|
static void
|
||||||
|
|
Loading…
Reference in New Issue