place some lv_log_add calls

This commit is contained in:
Gabor Kiss-Vamosi
2018-07-25 17:57:08 +02:00
parent 2d8b3b2b6e
commit 69434c8b7d
39 changed files with 354 additions and 29 deletions

View File

@@ -66,6 +66,12 @@ static const char * tab_def[] = {""};
*/
lv_obj_t * lv_tabview_create(lv_obj_t * par, lv_obj_t * copy)
{
#if USE_LV_LOG
lv_log_add(LV_LOG_LEVEL_TRACE, __FILE__, __LINE__, "Tabview create stared");
#endif
/*Create the ancestor of tab*/
lv_obj_t * new_tabview = lv_obj_create(par, copy);
lv_mem_assert(new_tabview);
@@ -170,6 +176,10 @@ lv_obj_t * lv_tabview_create(lv_obj_t * par, lv_obj_t * copy)
lv_obj_refresh_style(new_tabview);
}
#if USE_LV_LOG
lv_log_add(LV_LOG_LEVEL_INFO, __FILE__, __LINE__, "Tabview create ready");
#endif
return new_tabview;
}
@@ -811,7 +821,6 @@ static void tabview_realign(lv_obj_t * tabview)
pages = lv_obj_get_child(ext->content, pages);
}
lv_obj_align(ext->indic, ext->btns, LV_ALIGN_IN_BOTTOM_LEFT, 0, 0);
lv_tabview_set_tab_act(tabview, ext->tab_cur, false);