projects
/
framework
/
uifw
/
elementary.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8b359c4
)
[fileselector] sync with upstream
author
Mike McCormack
<mj.mccormack@samsung.com>
Wed, 23 Nov 2011 06:08:04 +0000
(15:08 +0900)
committer
Mike McCormack
<mj.mccormack@samsung.com>
Wed, 23 Nov 2011 06:08:04 +0000
(15:08 +0900)
src/bin/test_fileselector.c
patch
|
blob
|
history
diff --git
a/src/bin/test_fileselector.c
b/src/bin/test_fileselector.c
index
e9ae85e
..
5d3ac87
100644
(file)
--- a/
src/bin/test_fileselector.c
+++ b/
src/bin/test_fileselector.c
@@
-1,7
+1,18
@@
-#include <Elementary.h>
#ifdef HAVE_CONFIG_H
# include "elementary_config.h"
#endif
#ifdef HAVE_CONFIG_H
# include "elementary_config.h"
#endif
+
+#include <Elementary.h>
+
+#ifndef ENABLE_NLS
+# ifndef setlocale
+# define setlocale(c, l)
+# endif
+# ifndef libintl_setlocale
+# define libintl_setlocale(c, l)
+# endif
+#endif
+
#ifndef ELM_LIB_QUICKLAUNCH
static void
my_fileselector_done(void *data,
#ifndef ELM_LIB_QUICKLAUNCH
static void
my_fileselector_done(void *data,
@@
-108,7
+119,6
@@
test_fileselector(void *data __UNUSED__,
void *event_info __UNUSED__)
{
Evas_Object *win, *fs, *bg, *vbox, *hbox, *bt, *sep;
void *event_info __UNUSED__)
{
Evas_Object *win, *fs, *bg, *vbox, *hbox, *bt, *sep;
- const char *path = NULL;
/* Set the locale according to the system pref.
* If you dont do so the file selector will order the files list in
/* Set the locale according to the system pref.
* If you dont do so the file selector will order the files list in
@@
-138,9
+148,7
@@
test_fileselector(void *data __UNUSED__,
/* make the file list a tree with dir expandable in place */
elm_fileselector_expandable_set(fs, EINA_FALSE);
/* start the fileselector in the home dir */
/* make the file list a tree with dir expandable in place */
elm_fileselector_expandable_set(fs, EINA_FALSE);
/* start the fileselector in the home dir */
- path = getenv("HOME");
- if (!path) path = "./";
- elm_fileselector_path_set(fs, path);
+ elm_fileselector_path_set(fs, getenv("HOME"));
/* allow fs to expand in x & y */
evas_object_size_hint_weight_set(fs, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(fs, EVAS_HINT_FILL, EVAS_HINT_FILL);
/* allow fs to expand in x & y */
evas_object_size_hint_weight_set(fs, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(fs, EVAS_HINT_FILL, EVAS_HINT_FILL);