woohyun pushed a commit to branch master.
commit a29af89fe525ffa464061acb2ae458a1d975b32b
Author: WooHyun Jung <[email protected]>
Date: Thu May 2 19:55:22 2013 +0900
elementary/elc_naviframe.c : When new item is pushed, previous top object
should clear its focus state before adding as a sub-object to naviframe.
---
src/lib/elc_naviframe.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/lib/elc_naviframe.c b/src/lib/elc_naviframe.c
index cfcc6fa..18011ab 100644
--- a/src/lib/elc_naviframe.c
+++ b/src/lib/elc_naviframe.c
@@ -1441,7 +1441,10 @@ _item_push(Eo *obj, void *_pd, va_list *list)
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));
+ }
if (prev_it)
{
@@ -1567,6 +1570,7 @@ _item_insert_after(Eo *obj, void *_pd, va_list *list)
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_show(VIEW(it));
evas_object_hide(VIEW(after));
@@ -1714,6 +1718,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));
/* this was the previous top one */
--
------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1