forked from enlightenment/efl
elm genlist: Fixed item selection bug with decorate_all mode. Patch by
Hyoyoung Chang <hyoyoung@gmail.com> On Fri, Apr 20, 2012 at 5:19 PM, Hyoyoung Chang <hyoyoung@gmail.com> wrote: > After discuss with seoz, i changed to not clean selections also i > removed the new added internal func. > > Thanks > > On Fri, Apr 20, 2012 at 4:00 PM, Hyoyoung Chang <hyoyoung@gmail.com> wrote: >> Dear all, >> >> I made a small patch to fix remained selection bug. >> In decorate all mode, some item selection is not cleared after unset >> decorate all mode. >> I added to fix it. >> And make unselecting common routine to a internal function. >> >> Thanks. SVN revision: 70354
This commit is contained in:
parent
4a1590c6cb
commit
efe4997a78
|
@ -3437,6 +3437,8 @@ _decorate_all_item_realize(Elm_Gen_Item *it, Eina_Bool effect_on)
|
|||
_decorate_all_item_position(it, it->item->scrl_x, it->item->scrl_y);
|
||||
evas_object_show(it->deco_all_view);
|
||||
|
||||
if (it->selected) edje_object_signal_emit(it->deco_all_view, "elm,state,selected", "elm");
|
||||
|
||||
it->item->decorate_all_item_realized = EINA_TRUE;
|
||||
it->want_unrealize = EINA_FALSE;
|
||||
}
|
||||
|
@ -5551,7 +5553,6 @@ elm_genlist_decorate_mode_set(Evas_Object *obj, Eina_Bool decorated)
|
|||
{
|
||||
if (it->item->type != ELM_GENLIST_ITEM_GROUP)
|
||||
{
|
||||
if (it->selected) _item_unselect(it);
|
||||
if (it->itc->decorate_all_item_style)
|
||||
_decorate_all_item_realize(it, EINA_TRUE);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue