1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-14 06:42:58 +08:00

Fix lv_mbox_create for Micropython Binding

When passing array of strings, the parameter should be defined as const char *[], and not const char **
This commit is contained in:
Amir Gonnen 2019-11-23 01:41:27 +02:00
parent b4b6a472fb
commit 9779513928
2 changed files with 2 additions and 2 deletions

View File

@ -139,7 +139,7 @@ lv_obj_t * lv_mbox_create(lv_obj_t * par, const lv_obj_t * copy)
* @param btn_map button descriptor (button matrix map).
* E.g. a const char *txt[] = {"ok", "close", ""} (Can not be local variable)
*/
void lv_mbox_add_btns(lv_obj_t * mbox, const char ** btn_map)
void lv_mbox_add_btns(lv_obj_t * mbox, const char * btn_map[])
{
LV_ASSERT_OBJ(mbox, LV_OBJX_NAME);
LV_ASSERT_NULL(btn_map);

View File

@ -94,7 +94,7 @@ lv_obj_t * lv_mbox_create(lv_obj_t * par, const lv_obj_t * copy);
* @param btn_map button descriptor (button matrix map).
* E.g. a const char *txt[] = {"ok", "close", ""} (Can not be local variable)
*/
void lv_mbox_add_btns(lv_obj_t * mbox, const char ** btn_mapaction);
void lv_mbox_add_btns(lv_obj_t * mbox, const char * btn_mapaction[]);
/*=====================
* Setter functions