summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <marcel@osg.samsung.com>2017-11-19 11:08:36 +0100
committerMarcel Hollerbach <marcel@osg.samsung.com>2017-11-19 11:08:36 +0100
commitb27944da085234d93aee7079cb5b5588dcb4239f (patch)
tree069342585acc2527446efd44cbd9c8017d2609b9
parent796de8cb86fab56c009ecfe9ade65c25116d109f (diff)
downloadefl-b27944da085234d93aee7079cb5b5588dcb4239f.tar.gz
elm_list: use internal focus set instead of public focus set
elm_object_item_focus_set ensures that the list also gets focus, thus calling that in _elm_list_elm_widget_on_focus_update would result in a infinite call recursion, if setting the focus fails (for example when the object is not visible yet, [see enlightenment for that]). This fixes a freeze if you open lunchers config.
-rw-r--r--src/lib/elementary/elm_list.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/elementary/elm_list.c b/src/lib/elementary/elm_list.c
index 76e6ef5c42..35219faabc 100644
--- a/src/lib/elementary/elm_list.c
+++ b/src/lib/elementary/elm_list.c
@@ -1274,7 +1274,7 @@ _elm_list_elm_widget_on_focus_update(Eo *obj, Elm_List_Data *sd, Elm_Object_Item
if (!_elm_config->item_select_on_focus_disable && is_sel)
elm_list_item_selected_set(EO_OBJ(it), EINA_TRUE);
else
- elm_object_item_focus_set(EO_OBJ(it), EINA_TRUE);
+ _elm_list_item_focused(EO_OBJ(it));
}
}
}