From 5f1d624c5cf8b44133a7f7ce9cfe2bc24bed3b4d Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Sun, 4 May 2014 04:03:42 +1000 Subject: Add a file selector. --- src/extantz/extantz.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/extantz/extantz.c') diff --git a/src/extantz/extantz.c b/src/extantz/extantz.c index 4ad752e..1d37ade 100644 --- a/src/extantz/extantz.c +++ b/src/extantz/extantz.c @@ -330,6 +330,15 @@ EAPI_MAIN int elm_main(int argc, char **argv) char buf[PATH_MAX]; // Eina_Bool gotWebKit = elm_need_web(); // Initialise ewebkit if it exists, or return EINA_FALSE if it don't. + /* Set the locale according to the system pref. + * If you don't do so the file selector will order the files list in + * a case sensitive manner + */ + setlocale(LC_ALL, ""); + + elm_need_ethumb(); + elm_need_efreet(); + HamrTime(elm_main, "extantz"); fprintf(stdout, "prefix was set to: %s\n", elm_app_prefix_dir_get()); fprintf(stdout, "data directory is: %s\n", elm_app_data_dir_get()); @@ -403,6 +412,7 @@ EAPI_MAIN int elm_main(int argc, char **argv) // overlay_add(&ourGlobals); woMan_add(&ourGlobals); chat_add(&ourGlobals); + files_add(&ourGlobals); // Gotta do this after adding the windows, otherwise the menu renders under the window. // This sucks, gotta redefine this menu each time we create a new window? -- cgit v1.1