Show Hidden Files Beta Implementation 84/82284/1
authorbhutani.92 <bhutani.92@samsung.com>
Tue, 2 Aug 2016 10:58:29 +0000 (16:28 +0530)
committerbhutani.92 <bhutani.92@samsung.com>
Tue, 2 Aug 2016 10:58:29 +0000 (16:28 +0530)
Change-Id: If96cb08cd2a880a06ab5db178db5ace78b589741
Signed-off-by: bhutani.92 <bhutani.92@samsung.com>
inc/mf-conf.h
src/mf-main.c
src/widget/mf-context-popup.c

index cfcfda5..412b976 100755 (executable)
@@ -23,7 +23,7 @@
 #define MYFILE_PACKAGE                 "My Files"
 #define PKGNAME_MYFILE                 "org.tizen.myfile"
 #define PKGNAME_SYSTEM                 "sys_string"
-#define LOCALEDIR                      "/usr/apps/org.tizen.myfile/res/locale"
+#define LOCALEDIR                      "locale"
 #define MF_IMAGE_HEAD                  "myfile_"
 #define EDJ_PATH                       "/usr/apps/org.tizen.myfile/res/edje"
 #define ICON_PATH                      "/usr/apps/org.tizen.myfile/res/images"
index 9e68202..1e71c7a 100755 (executable)
@@ -511,17 +511,25 @@ bool __mf_main_create_app(void *data)
        struct appdata *ap = (struct appdata *)data;
        int ret_value = 0;
 
-       bindtextdomain(MYFILE_STRING_PACKAGE, LOCALEDIR);
+       char locale_path[1024] = {0};
+       char *path = app_get_resource_path();
+       snprintf(locale_path, 1024, "%s%s", path, LOCALEDIR);
+       bindtextdomain(MYFILE_STRING_PACKAGE, locale_path);
 
        textdomain(MYFILE_STRING_PACKAGE);
 
-//     ret_value = pthread_create(&thread_init, NULL, initialization, data);
-//     if (ret_value != 0) {
-//             initialization(data);
-//             mf_retvm_if(!initialization_done, -1, "Initialization failed");
-//     }
+/*
+       ret_value = pthread_create(&thread_init, NULL, initialization, data);
+       if (ret_value != 0) {
+               initialization(data);
+               mf_retvm_if(!initialization_done, -1, "Initialization failed");
+       }
+*/
+
        initialization(data);
-       //elm_config_preferred_engine_set("opengl_x11");
+
+       /*      elm_config_preferred_engine_set("opengl_x11");  */
+
 #if 0//Deprecated API
        if (!g_thread_supported()) {
                g_thread_init(NULL);
@@ -581,7 +589,6 @@ bool __mf_main_create_app(void *data)
        MF_TA_ACUM_ITEM_END("1234 mf_object_create_layout_main", 0);
 
        char edj_path[1024] = {0};
-       char *path = app_get_resource_path();
        snprintf(edj_path, 1024, "%s%s/%s", path , "edje", EDJ_GENLIST_NAME);
        elm_theme_extension_add(NULL, edj_path);
 
index 643ed21..0dad6f9 100755 (executable)
@@ -463,6 +463,10 @@ void mf_context_popup_create_more(void *data, Evas_Object *parent)
 
                        //1 Storage Usage
                        __mf_context_popup_item_append(ctxpopup, ap, mf_context_popup_item_storage_usage);
+
+                       //1 Hidden
+                       __mf_context_popup_item_append(ctxpopup, ap, mf_context_popup_item_show_hide_hidden);
+
                        //1 Setting
                        //__mf_context_popup_item_append(ctxpopup, ap, mf_context_popup_item_setting);
                } else if (ap->mf_Status.view_type == mf_view_storage) {
@@ -577,8 +581,9 @@ void mf_context_popup_create_more(void *data, Evas_Object *parent)
                                //1 Sort by
                                __mf_context_popup_item_append(ctxpopup, ap, mf_context_popup_item_sort_by);
                        }
-                       // hidden
+                       // Hidden
                        __mf_context_popup_item_append(ctxpopup, ap, mf_context_popup_item_show_hide_hidden);
+
                        //1 Setting
 
                        //__mf_context_popup_item_append(ctxpopup, ap, mf_context_popup_item_setting);