gengrid: Fixed item select logic when item select mode is ALWAYS.

Summary:
If gengrid select mode is not ELM_OBJECT_SELECT_MODE_ALWAYS, ELM_OBJECT_SELECT_MODE_ALWAYS mode for
elm_genlist_item_select_mode was broken. In the item select routine, item mode(it->mode) was not checked.
So, I added the check routine there.
@fix

Test Plan: I revised the elementary_test code and tested with that.

Reviewers: raster, seoz

Reviewed By: seoz

Subscribers: SanghyeonLee, bluezery

Differential Revision: https://phab.enlightenment.org/D1372
This commit is contained in:
Jae Yong Hwang 2014-08-27 21:56:38 +09:00 committed by Daniel Juyung Seo
parent 84bec552c9
commit d84dfe2985
1 changed files with 2 additions and 1 deletions

View File

@ -3426,7 +3426,8 @@ _item_select(Elm_Gen_Item *it)
it->selected = EINA_TRUE;
sd->selected = eina_list_append(sd->selected, it);
}
else if (sd->select_mode != ELM_OBJECT_SELECT_MODE_ALWAYS)
else if ((sd->select_mode != ELM_OBJECT_SELECT_MODE_ALWAYS) &&
(it->select_mode != ELM_OBJECT_SELECT_MODE_ALWAYS))
return;
evas_object_ref(obj);