From: Tae-Hwan Kim Date: Tue, 18 Jun 2013 07:40:55 +0000 (+0900) Subject: [Genlist] Minor fix X-Git-Tag: accepted/tizen/20130927.071315^2~156 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8bcbd1c18ad8a95fe2170f9ee3d4f098be69872a;p=profile%2Fmobile%2Felementary.git [Genlist] Minor fix Change-Id: I08c753afb06fce4ab7ddc909c56b21bf51b8fc6f --- diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c index f7319fb..f2e735a 100644 --- a/src/lib/elm_genlist.c +++ b/src/lib/elm_genlist.c @@ -1869,7 +1869,8 @@ _item_realize(Elm_Gen_Item *it, } } - if (_focus_enabled(ELM_WIDGET_DATA(GL_IT(it)->wsd)->obj)) + if (_focus_enabled(ELM_WIDGET_DATA(GL_IT(it)->wsd)->obj) && + (it == GL_IT(it)->wsd->focused)) { if (GL_IT(it)->wsd->focused) edje_object_signal_emit (VIEW(GL_IT(it)->wsd->focused), "elm,state,focused", "elm"); @@ -5209,7 +5210,7 @@ _elm_genlist_smart_set_user(Elm_Genlist_Smart_Class *sc) ELM_WIDGET_CLASS(sc)->translate = _elm_genlist_smart_translate; /* not a 'focus chain manager' */ - ELM_WIDGET_CLASS(sc)->focus_next = NULL; //_elm_genlist_smart_focus_next; + ELM_WIDGET_CLASS(sc)->focus_next = NULL; ELM_WIDGET_CLASS(sc)->focus_direction = NULL; ELM_LAYOUT_CLASS(sc)->sizing_eval = _elm_genlist_smart_sizing_eval; @@ -5364,7 +5365,7 @@ _item_free_common(Elm_Gen_Item *it) if (sd->last_selected_item == (Elm_Object_Item *)it) sd->last_selected_item = NULL; - if (sd->focused == (Elm_Object_Item *)it) sd->focused = NULL; + if (sd->focused == it) sd->focused = NULL; _item_event_del(it);