jackdanielz pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=7957041d845a0130f57be7abad4acd1f61141764
commit 7957041d845a0130f57be7abad4acd1f61141764 Author: Daniel Zaoui <[email protected]> Date: Tue Nov 8 14:40:50 2016 +0200 Toolbar: fix retrieval of previous state There should be no problem that the prev_state is the first state. The last state should be returned only if there is nothing before the current state. @fix --- src/lib/elementary/elm_toolbar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/elementary/elm_toolbar.c b/src/lib/elementary/elm_toolbar.c index cbeaddc..67f9518 100644 --- a/src/lib/elementary/elm_toolbar.c +++ b/src/lib/elementary/elm_toolbar.c @@ -3818,7 +3818,7 @@ _elm_toolbar_item_state_prev(Eo *eo_item EINA_UNUSED, Elm_Toolbar_Item_Data *ite if (!item->states) return NULL; prev_state = eina_list_prev(item->current_state); - if ((!prev_state) || (prev_state == item->states)) + if (!prev_state) prev_state = eina_list_last(item->states); return eina_list_data_get(prev_state); } --
