summaryrefslogtreecommitdiff
path: root/legacy/elementary
diff options
context:
space:
mode:
authorChunEon Park <hermet@hermet.pe.kr>2012-03-27 06:06:50 +0000
committerChunEon Park <hermet@hermet.pe.kr>2012-03-27 06:06:50 +0000
commit2cb08ee53ce36d10c436da2c1abd03efe1293bd6 (patch)
treed7324ba8a9bed6ca6b4ac402e015b866dae5db95 /legacy/elementary
parent3743154b482b9e02af19c9d396e0f9a93cd9bde2 (diff)
elementary/naviframe - fixed to an object has a focus even if insert_after APIs is called.
SVN revision: 69652
Diffstat (limited to 'legacy/elementary')
-rw-r--r--legacy/elementary/src/lib/elc_naviframe.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/legacy/elementary/src/lib/elc_naviframe.c b/legacy/elementary/src/lib/elc_naviframe.c
index 28e788ef1b..d97087d362 100644
--- a/legacy/elementary/src/lib/elc_naviframe.c
+++ b/legacy/elementary/src/lib/elc_naviframe.c
@@ -1235,6 +1235,7 @@ elm_naviframe_item_insert_after(Evas_Object *obj,
1235 ELM_OBJ_ITEM_CHECK_OR_RETURN(after, NULL); 1235 ELM_OBJ_ITEM_CHECK_OR_RETURN(after, NULL);
1236 Elm_Naviframe_Item *it; 1236 Elm_Naviframe_Item *it;
1237 Widget_Data *wd; 1237 Widget_Data *wd;
1238 Eina_Bool top_inserted;
1238 1239
1239 wd = elm_widget_data_get(obj); 1240 wd = elm_widget_data_get(obj);
1240 if (!wd) return NULL; 1241 if (!wd) return NULL;
@@ -1242,16 +1243,20 @@ elm_naviframe_item_insert_after(Evas_Object *obj,
1242 it = _item_new(obj, title_label, prev_btn, next_btn, content, item_style); 1243 it = _item_new(obj, title_label, prev_btn, next_btn, content, item_style);
1243 if (!it) return NULL; 1244 if (!it) return NULL;
1244 1245
1245 if (elm_naviframe_top_item_get(obj) == after) 1246 if (elm_naviframe_top_item_get(obj) == after) top_inserted = EINA_TRUE;
1246 { 1247
1247 evas_object_show(VIEW(it));
1248 evas_object_hide(VIEW(after));
1249 }
1250 wd->stack = 1248 wd->stack =
1251 eina_inlist_append_relative(wd->stack, 1249 eina_inlist_append_relative(wd->stack,
1252 EINA_INLIST_GET(it), 1250 EINA_INLIST_GET(it),
1253 EINA_INLIST_GET(((Elm_Naviframe_Item *) after))); 1251 EINA_INLIST_GET(((Elm_Naviframe_Item *) after)));
1252 if (top_inserted)
1253 {
1254 evas_object_show(VIEW(it));
1255 evas_object_hide(VIEW(after));
1256 }
1257
1254 _sizing_eval(obj); 1258 _sizing_eval(obj);
1259
1255 return (Elm_Object_Item *)it; 1260 return (Elm_Object_Item *)it;
1256} 1261}
1257 1262