summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/elc_naviframe.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/lib/elc_naviframe.c b/src/lib/elc_naviframe.c
index a9a453ea8..e39e2f929 100644
--- a/src/lib/elc_naviframe.c
+++ b/src/lib/elc_naviframe.c
@@ -1406,6 +1406,17 @@ _elm_naviframe_smart_del(Eo *obj, void *_pd, va_list *list EINA_UNUSED)
1406 eo_do_super(obj, MY_CLASS, evas_obj_smart_del()); 1406 eo_do_super(obj, MY_CLASS, evas_obj_smart_del());
1407} 1407}
1408 1408
1409//Show only the top item view
1410static void
1411_elm_naviframe_smart_show(Eo *obj, void *_pd EINA_UNUSED, va_list *list EINA_UNUSED)
1412{
1413 Elm_Naviframe_Item *top;
1414
1415 top = (Elm_Naviframe_Item *)elm_naviframe_top_item_get(obj);
1416 if (top && !top->delete_me)
1417 evas_object_show(VIEW(top));
1418}
1419
1409static void 1420static void
1410_elm_naviframe_smart_event(Eo *obj, void *_pd EINA_UNUSED, va_list *list) 1421_elm_naviframe_smart_event(Eo *obj, void *_pd EINA_UNUSED, va_list *list)
1411{ 1422{
@@ -2133,6 +2144,7 @@ _class_constructor(Eo_Class *klass)
2133 2144
2134 EO_OP_FUNC(EVAS_OBJ_SMART_ID(EVAS_OBJ_SMART_SUB_ID_ADD), _elm_naviframe_smart_add), 2145 EO_OP_FUNC(EVAS_OBJ_SMART_ID(EVAS_OBJ_SMART_SUB_ID_ADD), _elm_naviframe_smart_add),
2135 EO_OP_FUNC(EVAS_OBJ_SMART_ID(EVAS_OBJ_SMART_SUB_ID_DEL), _elm_naviframe_smart_del), 2146 EO_OP_FUNC(EVAS_OBJ_SMART_ID(EVAS_OBJ_SMART_SUB_ID_DEL), _elm_naviframe_smart_del),
2147 EO_OP_FUNC(EVAS_OBJ_SMART_ID(EVAS_OBJ_SMART_SUB_ID_SHOW), _elm_naviframe_smart_show),
2136 2148
2137 EO_OP_FUNC(ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_FOCUS_NEXT_MANAGER_IS), _elm_naviframe_smart_focus_next_manager_is), 2149 EO_OP_FUNC(ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_FOCUS_NEXT_MANAGER_IS), _elm_naviframe_smart_focus_next_manager_is),
2138 EO_OP_FUNC(ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_FOCUS_NEXT), _elm_naviframe_smart_focus_next), 2150 EO_OP_FUNC(ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_FOCUS_NEXT), _elm_naviframe_smart_focus_next),