elm_toolbar: fix elm_toolbar_select_mode_set API

Summary: Item is unselected when I changed select mode "ELM_OBJECT_SELECT_MODE_DEFAULT" to "ELM_OBJECT_SELECT_MODE_ALWAYS".

Reviewers: Hermet, cedric, raster, seoz, woohyun

Reviewed By: woohyun

Differential Revision: https://phab.enlightenment.org/D3086
This commit is contained in:
Hosang Kim 2015-09-23 16:20:45 +09:00 committed by WooHyun Jung
parent 3a5f8759e8
commit bfff68bb45
1 changed files with 1 additions and 2 deletions

View File

@ -3724,14 +3724,13 @@ _elm_toolbar_select_mode_set(Eo *obj EINA_UNUSED, Elm_Toolbar_Data *sd, Elm_Obje
return;
if (sd->select_mode == mode) return;
sd->select_mode = mode;
if ((mode == ELM_OBJECT_SELECT_MODE_ALWAYS) &&
(sd->select_mode != ELM_OBJECT_SELECT_MODE_ALWAYS) &&
sd->items)
_item_select(ELM_TOOLBAR_ITEM_FROM_INLIST(sd->items));
if (sd->select_mode != mode)
sd->select_mode = mode;
}
EOLIAN static Elm_Object_Select_Mode