rimmed pushed a commit to branch master. http://git.enlightenment.org/tools/eflete.git/commit/?id=d821d20e530fab4a37f3e2f534f695b45c142525
commit d821d20e530fab4a37f3e2f534f695b45c142525 Author: Vyacheslav Reutskiy <[email protected]> Date: Wed Apr 20 11:29:35 2016 +0300 workspace: hilight part item in groupview on select it in group_navi Change-Id: I080778ee83244832f600c13bc5cd46a86c2a2f84 --- src/bin/ui/workspace/group_navigator.c | 2 ++ src/bin/ui/workspace/groupview.c | 6 ++---- src/bin/ui/workspace/workspace.c | 2 ++ 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/bin/ui/workspace/group_navigator.c b/src/bin/ui/workspace/group_navigator.c index 9ed6cbb..3e12e30 100644 --- a/src/bin/ui/workspace/group_navigator.c +++ b/src/bin/ui/workspace/group_navigator.c @@ -631,6 +631,8 @@ _selected_cb(void *data, elm_genlist_item_fields_update(glit_part, "selected", ELM_GENLIST_ITEM_FIELD_STATE); evas_object_smart_callback_call(pl->layout, SIGNAL_GROUP_NAVIGATOR_PART_SELECTED, part); } + else + part->current_item_name = NULL; elm_object_item_disabled_set(pl->add_state_menu_item, false); if ((part->type == EDJE_PART_TYPE_BOX) || (part->type == EDJE_PART_TYPE_TABLE)) diff --git a/src/bin/ui/workspace/groupview.c b/src/bin/ui/workspace/groupview.c index e9d1421..179674d 100644 --- a/src/bin/ui/workspace/groupview.c +++ b/src/bin/ui/workspace/groupview.c @@ -554,9 +554,7 @@ groupview_part_item_selected_set(Evas_Object *obj, gp = sd->selected; if (!gp) return; - if (!item_name) return; - - if (selected) + if ((selected) && (item_name)) { item = _part_item_search(gp->items, item_name); if (gp->current_item) @@ -564,7 +562,7 @@ groupview_part_item_selected_set(Evas_Object *obj, elm_object_signal_emit(item->layout, "border,part_item,hilight,on", "eflete"); gp->current_item = item; } - else + else if (gp->current_item) { elm_object_signal_emit(gp->current_item->layout, "border,part_item,hilight,off", "eflete"); gp->current_item = NULL; diff --git a/src/bin/ui/workspace/workspace.c b/src/bin/ui/workspace/workspace.c index ec11d08..7e7221f 100644 --- a/src/bin/ui/workspace/workspace.c +++ b/src/bin/ui/workspace/workspace.c @@ -859,6 +859,8 @@ _part_select(void *data, groupview_part_select(wd->normal.content, part ? part->name : NULL); evas_object_smart_callback_call(ap.win, SIGNAL_PART_SELECTED, part); + if (part) + groupview_part_item_selected_set(wd->normal.content, part->current_item_name, part->current_item_name ? true : false); } static void --
