void sp_view_mgr_push_view_content(Sp_View_Manager *view_mgr, Evas_Object *content, Sp_View_Type type) { startfunc; MP_CHECK(view_mgr); MP_CHECK(view_mgr->navi); MP_CHECK(content); Sp_View_Data *view_data = calloc(1, sizeof(Sp_View_Data)); mp_assert(view_data); const char *item_style = NULL; Eina_Bool title_visible = EINA_TRUE; if (type == SP_VIEW_TYPE_PLAY) { item_style = "1line/music"; title_visible = EINA_FALSE; } view_data->navi_item = elm_naviframe_item_push(view_mgr->navi, NULL, NULL, NULL, content, item_style); elm_naviframe_item_title_visible_set(view_data->navi_item, title_visible); view_data->type = type; view_data->index = g_list_length(view_mgr->view_history); view_mgr->view_history = g_list_append(view_mgr->view_history, view_data); }
void sp_view_mgr_set_title_visible(Sp_View_Manager *view_mgr, bool flag) { MP_CHECK(view_mgr); Evas_Object *navi = sp_view_mgr_get_naviframe(view_mgr); MP_CHECK(navi); Elm_Object_Item *navi_item = elm_naviframe_top_item_get(navi); if (navi_item) elm_naviframe_item_title_visible_set(navi_item, flag); }
PREFIX value ml_elm_naviframe_item_title_visible_set(value v_it, value v_flag) { elm_naviframe_item_title_visible_set((Elm_Object_Item*) v_it, Eina_Bool_val(v_flag)); return Val_unit; }