summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2012-04-20 08:40:13 +0000
committerDaniel Juyung Seo <seojuyung2@gmail.com>2012-04-20 08:40:13 +0000
commit578e621023db5569cb07f5645635b1bfd8fc0f60 (patch)
treeb8a4921682a46db605b87561b2edb60dde3456ce
parent14e3f35ebd43b1777d8e557e222d88cf35955776 (diff)
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
-rw-r--r--src/lib/elm_genlist.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c
index 3ffd58a0a..c86072b38 100644
--- a/src/lib/elm_genlist.c
+++ b/src/lib/elm_genlist.c
@@ -3437,6 +3437,8 @@ _decorate_all_item_realize(Elm_Gen_Item *it, Eina_Bool effect_on)
3437 _decorate_all_item_position(it, it->item->scrl_x, it->item->scrl_y); 3437 _decorate_all_item_position(it, it->item->scrl_x, it->item->scrl_y);
3438 evas_object_show(it->deco_all_view); 3438 evas_object_show(it->deco_all_view);
3439 3439
3440 if (it->selected) edje_object_signal_emit(it->deco_all_view, "elm,state,selected", "elm");
3441
3440 it->item->decorate_all_item_realized = EINA_TRUE; 3442 it->item->decorate_all_item_realized = EINA_TRUE;
3441 it->want_unrealize = EINA_FALSE; 3443 it->want_unrealize = EINA_FALSE;
3442} 3444}
@@ -5551,7 +5553,6 @@ elm_genlist_decorate_mode_set(Evas_Object *obj, Eina_Bool decorated)
5551 { 5553 {
5552 if (it->item->type != ELM_GENLIST_ITEM_GROUP) 5554 if (it->item->type != ELM_GENLIST_ITEM_GROUP)
5553 { 5555 {
5554 if (it->selected) _item_unselect(it);
5555 if (it->itc->decorate_all_item_style) 5556 if (it->itc->decorate_all_item_style)
5556 _decorate_all_item_realize(it, EINA_TRUE); 5557 _decorate_all_item_realize(it, EINA_TRUE);
5557 } 5558 }