hermet pushed a commit to branch master.

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

commit e70197ff493cd8ff4fefd9ffa8e5d84ee27a43d7
Author: Hermet Park <her...@hermet.pe.kr>
Date:   Fri Apr 22 18:32:10 2016 +0900

    edc_navigator: don't sorted insert for groups and programs.
    
    I found a genlist has a logical error (probably).
    This change avoid that error.
    But even programs and groups doesn't need a sorting.
---
 src/bin/edc_navigator.c | 36 +++++++++++++++++-------------------
 1 file changed, 17 insertions(+), 19 deletions(-)

diff --git a/src/bin/edc_navigator.c b/src/bin/edc_navigator.c
index ef23e23..6e9ca9d 100644
--- a/src/bin/edc_navigator.c
+++ b/src/bin/edc_navigator.c
@@ -847,14 +847,13 @@ programs_update(navi_data *nd, group_it *git)
         pit->tag.type = Item_Type_Programs;
         pit->tag.idx = PROGRAM_IDX;
         pit->git = git;
-        pit->it = elm_genlist_item_sorted_insert(nd->genlist,
-                                                 nd->programs_itc,
-                                                 pit,
-                                                 git->it,
-                                                 ELM_GENLIST_ITEM_TREE,
-                                                 gl_comp_func,
-                                                 gl_programs_selected_cb,
-                                                 pit);
+        pit->it = elm_genlist_item_append(nd->genlist,
+                                          nd->programs_itc,
+                                          pit,
+                                          git->it,
+                                          ELM_GENLIST_ITEM_TREE,
+                                          gl_programs_selected_cb,
+                                          pit);
         return;
      }
 
@@ -1313,14 +1312,13 @@ edc_navigator_group_update(const char *cur_group)
         git->tag.idx = idx;
         git->name = strdup(name);
         git->nd = nd;
-        git->it = elm_genlist_item_sorted_insert(nd->genlist,
-                                                 nd->group_itc,
-                                                 git,
-                                                 NULL,
-                                                 ELM_GENLIST_ITEM_TREE,
-                                                 gl_comp_func,
-                                                 gl_group_selected_cb,
-                                                 git);
+        git->it = elm_genlist_item_append(nd->genlist,
+                                          nd->group_itc,
+                                          git,
+                                          NULL,
+                                          ELM_GENLIST_ITEM_TREE,
+                                          gl_group_selected_cb,
+                                          git);
         nd->groups = eina_list_append(nd->groups, git);
      }
 
@@ -1396,7 +1394,7 @@ edc_navigator_init(Evas_Object *parent)
    Elm_Genlist_Item_Class *itc;
 
    itc = elm_genlist_item_class_new();
-   itc->item_style = "tree_effect";
+   itc->item_style = "default";
    itc->func.text_get = gl_group_text_get_cb;
    itc->func.content_get = gl_group_content_get_cb;
 
@@ -1404,7 +1402,7 @@ edc_navigator_init(Evas_Object *parent)
 
    //Part Item Class
    itc = elm_genlist_item_class_new();
-   itc->item_style = "tree_effect";
+   itc->item_style = "default";
    itc->func.text_get = gl_part_text_get_cb;
    itc->func.content_get = gl_part_content_get_cb;
 
@@ -1420,7 +1418,7 @@ edc_navigator_init(Evas_Object *parent)
 
    //Programs Item Class
    itc = elm_genlist_item_class_new();
-   itc->item_style = "tree_effect";
+   itc->item_style = "default";
    itc->func.text_get = gl_programs_text_get_cb;
    itc->func.content_get = gl_programs_content_get_cb;
 

-- 


Reply via email to