jaehwan pushed a commit to branch master. http://git.enlightenment.org/tools/eflete.git/commit/?id=f5547763e6689cf60868a1085113f8af2cfedb4c
commit f5547763e6689cf60868a1085113f8af2cfedb4c Author: Jaehwan Kim <jae.hwan....@samsung.com> Date: Wed Jun 8 18:25:53 2016 +0900 Project navigator: change the method to get the text If the genlist item is not realized, it occurs the segfault since the item can not return the text. So in that case, genlist should call the get_text function directly. @fix --- src/bin/ui/project_navigator.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/bin/ui/project_navigator.c b/src/bin/ui/project_navigator.c index 0ff96db..e7f1e18 100644 --- a/src/bin/ui/project_navigator.c +++ b/src/bin/ui/project_navigator.c @@ -324,9 +324,22 @@ _on_clicked_double(void *data __UNUSED__, static Elm_Object_Item * _find_item(Elm_Object_Item *item, const char *name) { + char *item_text = NULL; + while (item) { - if (!strcmp(elm_object_item_text_get(item), name)) break; + if (elm_genlist_item_item_class_get(item) == project_navigator.itc_folder) + item_text = _folder_item_label_get(elm_object_item_data_get(item), NULL, NULL); + else if (elm_genlist_item_item_class_get(item) == project_navigator.itc_group) + item_text = _group_item_label_get(elm_object_item_data_get(item), NULL, NULL); + + if (item_text && !strcmp(item_text, name)) + { + free(item_text); + break; + } + if (item_text) free(item_text); + item = elm_genlist_item_next_get(item); } return item; --