aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmitesh Singh <amitesh.sh@samsung.com>2017-07-11 15:12:45 +0900
committerAmitesh Singh <amitesh.sh@samsung.com>2017-07-11 15:17:09 +0900
commit7fa14e5cc65c65d0ad8e68e47d88b8600091ff7e (patch)
treedabb80de4fea38e3494ce64e69d6b61b89e2abb2
parentevas: Improve the documentation for evas_init() and evas_shutdown() (diff)
downloadefl-7fa14e5cc65c65d0ad8e68e47d88b8600091ff7e.tar.gz
genlist: fix multiple focus edje signal issue
We need focus edje signal when item is focused or the already focused item realizes. its wrong to call focus signal on _elm_genlist_item_state_update() fixes https://phab.enlightenment.org/T4969
-rw-r--r--src/lib/elementary/elm_genlist.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/lib/elementary/elm_genlist.c b/src/lib/elementary/elm_genlist.c
index d184984ab7..73b5fc086f 100644
--- a/src/lib/elementary/elm_genlist.c
+++ b/src/lib/elementary/elm_genlist.c
@@ -1320,8 +1320,6 @@ _item_order_update(Elm_Gen_Item *it, int index, Eina_Bool process)
static void
_elm_genlist_item_state_update(Elm_Gen_Item *it)
{
- ELM_GENLIST_DATA_GET_FROM_ITEM(it, sd);
-
if (it->selected)
{
edje_object_signal_emit(VIEW(it), SIGNAL_SELECTED, "elm");
@@ -1343,9 +1341,6 @@ _elm_genlist_item_state_update(Elm_Gen_Item *it)
edje_object_signal_emit
(it->deco_all_view, SIGNAL_EXPANDED, "elm");
}
- if ((EO_OBJ(it) == sd->focused_item) &&
- (elm_widget_focus_highlight_enabled_get(WIDGET(it)) || _elm_config->win_auto_focus_enable))
- edje_object_signal_emit(VIEW(it), SIGNAL_FOCUSED, "elm");
}
static void
@@ -1785,7 +1780,8 @@ _elm_genlist_item_focus_update(Elm_Gen_Item *it)
Evas_Object *obj = WIDGET(it);
ELM_GENLIST_DATA_GET(obj, sd);
- if (elm_widget_focus_highlight_enabled_get(obj))
+ if (elm_widget_focus_highlight_enabled_get(obj)
+ || _elm_config->win_auto_focus_enable)
edje_object_signal_emit(VIEW(it), SIGNAL_FOCUSED, "elm");
focus_raise = edje_object_data_get(VIEW(it), "focusraise");