projects
/
platform
/
upstream
/
elementary.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
969d921
)
elc_fileselector: fix looking for right Windows home path.
author
michelle legrand
<michelle.legrand@openwide.fr>
Fri, 9 Jan 2015 16:09:19 +0000
(17:09 +0100)
committer
Cedric 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
patch
|
blob
|
history
diff --git
a/src/lib/elc_fileselector.c
b/src/lib/elc_fileselector.c
index
c5d9a19
..
1ea2c01
100644
(file)
--- a/
src/lib/elc_fileselector.c
+++ b/
src/lib/elc_fileselector.c
@@
-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;
+
+#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