From 977951392809de75297ef83edd96e1defa3bf4f1 Mon Sep 17 00:00:00 2001 From: Amir Gonnen Date: Sat, 23 Nov 2019 01:41:27 +0200 Subject: [PATCH] Fix lv_mbox_create for Micropython Binding When passing array of strings, the parameter should be defined as const char *[], and not const char ** --- src/lv_objx/lv_mbox.c | 2 +- src/lv_objx/lv_mbox.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lv_objx/lv_mbox.c b/src/lv_objx/lv_mbox.c index 1e8767b4e..f56904cb0 100644 --- a/src/lv_objx/lv_mbox.c +++ b/src/lv_objx/lv_mbox.c @@ -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); diff --git a/src/lv_objx/lv_mbox.h b/src/lv_objx/lv_mbox.h index df504f851..2068b3735 100644 --- a/src/lv_objx/lv_mbox.h +++ b/src/lv_objx/lv_mbox.h @@ -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