From: WooHyun Jung Date: Fri, 3 May 2013 11:18:36 +0000 (+0900) Subject: [naviframe] When new item is pushed, previous top object should clear its focus state... X-Git-Tag: accepted/tizen/20130927.071315^2~368 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=eeda9453fa39ded104f5e4735686e845dc538e85;p=profile%2Fmobile%2Felementary.git [naviframe] When new item is pushed, previous top object should clear its focus state before adding as a sub-object to naviframe. --- diff --git a/src/lib/elc_naviframe.c b/src/lib/elc_naviframe.c index 4a5b453..911e9a5 100644 --- a/src/lib/elc_naviframe.c +++ b/src/lib/elc_naviframe.c @@ -1658,7 +1658,10 @@ elm_naviframe_item_push(Evas_Object *obj, evas_object_show(VIEW(it)); elm_widget_resize_object_set(obj, VIEW(it)); if (prev_it) - elm_widget_sub_object_add(obj, VIEW(prev_it)); + { + elm_widget_focused_object_clear(VIEW(prev_it)); + elm_widget_sub_object_add(obj, VIEW(prev_it)); + } evas_object_smart_member_add(sd->dummy_edje, obj); if (prev_it) @@ -1757,6 +1760,7 @@ elm_naviframe_item_insert_after(Evas_Object *obj, if (top_inserted) { elm_widget_resize_object_set(obj, VIEW(it)); + elm_widget_focused_object_clear(VIEW(after)); elm_widget_sub_object_add(obj, VIEW(after)); evas_object_smart_member_add(sd->dummy_edje, obj); evas_object_show(VIEW(it)); @@ -1913,6 +1917,7 @@ elm_naviframe_item_promote(Elm_Object_Item *it) sd->stack = eina_inlist_demote(sd->stack, EINA_INLIST_GET(nit)); elm_widget_resize_object_set(WIDGET(it), VIEW(nit)); + elm_widget_focused_object_clear(VIEW(prev_top)); elm_widget_sub_object_add(WIDGET(it), VIEW(prev_top)); evas_object_smart_member_add(sd->dummy_edje, WIDGET(it));