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:
parent
b4b6a472fb
commit
9779513928
@ -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);
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user