jaehyun pushed a commit to branch master.

http://git.enlightenment.org/tools/enventor.git/commit/?id=f84eeb951ef30e0bc9d510a7bfdc1c63f538e188

commit f84eeb951ef30e0bc9d510a7bfdc1c63f538e188
Author: Jaehyun Cho <jae_hyun....@samsung.com>
Date:   Mon May 2 11:14:58 2016 +0900

    file_browser: Remove "Collections EDC".
    
    Normally collections edc is included in the workspace directory.
    Therefore, "Collections EDC" item is removed from the file browser.
---
 src/bin/base_gui.c         |  1 -
 src/bin/file_browser.c     | 48 ----------------------------------------------
 src/include/file_browser.h |  1 -
 3 files changed, 50 deletions(-)

diff --git a/src/bin/base_gui.c b/src/bin/base_gui.c
index 01d4011..e6dc111 100644
--- a/src/bin/base_gui.c
+++ b/src/bin/base_gui.c
@@ -323,7 +323,6 @@ base_gui_init(void)
    Evas_Object *file_browser = file_browser_init(layout);
    elm_object_part_content_set(layout, "elm.swallow.file_browser",
                                file_browser);
-   file_browser_edc_file_set(config_input_path_get());
    file_browser_workspace_set(config_workspace_path_get());
 
    //EDC Navigator
diff --git a/src/bin/file_browser.c b/src/bin/file_browser.c
index c74975a..38ac392 100644
--- a/src/bin/file_browser.c
+++ b/src/bin/file_browser.c
@@ -21,7 +21,6 @@ struct file_browser_file_s
 
 typedef struct file_browser_s
 {
-   brows_file *col_edc;   //collections edc
    brows_file *workspace; //workspace directory
 
    Evas_Object *box;
@@ -31,7 +30,6 @@ typedef struct file_browser_s
    Elm_Genlist_Item_Class *itc;
    Elm_Genlist_Item_Class *group_itc;
 
-   Elm_Object_Item *col_edc_group_it;   //Show "Collections EDC" group index.
    Elm_Object_Item *workspace_group_it; //Show "Workspace" group index.
 } brows_data;
 
@@ -337,51 +335,6 @@ file_browser_workspace_set(const char *workspace_path)
      gl_exp_req(NULL, NULL, workspace->it);
 }
 
-/* Set "collections" edc file. */
-void
-file_browser_edc_file_set(const char *edc_file)
-{
-   brows_data *bd = g_bd;
-   if (!bd) return;
-
-   if (!edc_file) return;
-   if (!ecore_file_exists(edc_file)) return;
-
-   char *ext = strrchr(edc_file, '.');
-   if (!ext || (strlen(ext) != 4) || strncmp(ext, ".edc", 4))
-     return;
-
-   if (bd->col_edc)
-     {
-        if (!strcmp(edc_file, bd->col_edc->path))
-          return;
-
-        brows_file_free(bd->col_edc);
-        bd->col_edc = NULL;
-     }
-
-   if (bd->col_edc_group_it)
-     {
-        elm_object_item_del(bd->col_edc_group_it);
-        bd->col_edc_group_it = NULL;
-     }
-   //Show "Collections EDC" group index.
-   bd->col_edc_group_it =
-      elm_genlist_item_append(bd->genlist,
-                              bd->group_itc,         /* item class */
-                              "Collections EDC",     /* item data */
-                              NULL,                  /* parent */
-                              ELM_GENLIST_ITEM_NONE, /* item type */
-                              NULL,                  /* select_cb */
-                              NULL);                 /* select_cb data */
-   elm_genlist_item_select_mode_set(bd->col_edc_group_it,
-                                    ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY);
-
-   brows_file *edc = file_set_internal(edc_file);
-   if (!edc) return;
-   bd->col_edc = edc;
-}
-
 static void
 btn_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED,
                void *event_info EINA_UNUSED)
@@ -462,7 +415,6 @@ file_browser_term(void)
    brows_data *bd = g_bd;
    if (!bd) return;
 
-   if (bd->col_edc) brows_file_free(bd->col_edc);
    if (bd->workspace) brows_file_free(bd->workspace);
 
    elm_genlist_item_class_free(bd->itc);
diff --git a/src/include/file_browser.h b/src/include/file_browser.h
index 348f7fa..589c97e 100644
--- a/src/include/file_browser.h
+++ b/src/include/file_browser.h
@@ -1,4 +1,3 @@
 Evas_Object *file_browser_init(Evas_Object *parent);
 void file_browser_term(void);
 void file_browser_workspace_set(const char *workspace_dir);
-void file_browser_edc_file_set(const char *edc_file);

-- 


Reply via email to