diff --git a/radio/src/thirdparty/libopenui/src/table.cpp b/radio/src/thirdparty/libopenui/src/table.cpp index cf249a564..6d0f93f62 100644 --- a/radio/src/thirdparty/libopenui/src/table.cpp +++ b/radio/src/thirdparty/libopenui/src/table.cpp @@ -136,7 +136,7 @@ void TableField::draw_end(lv_event_t* e) } TableField::TableField(Window* parent, const rect_t& rect, WindowFlags windowFlags) : - Window(parent, rect, windowFlags, 0, edgetx_table_create) + Window(parent, rect, windowFlags, 0, table_create) { lv_obj_add_event_cb(lvobj, TableField::event_cb, LV_EVENT_ALL, nullptr); } diff --git a/radio/src/thirdparty/libopenui/src/widgets/edgetx_table.c b/radio/src/thirdparty/libopenui/src/widgets/edgetx_table.c index 22040de91..7afbfe62c 100644 --- a/radio/src/thirdparty/libopenui/src/widgets/edgetx_table.c +++ b/radio/src/thirdparty/libopenui/src/widgets/edgetx_table.c @@ -2,14 +2,14 @@ #include "edgetx_table.h" -#define MY_CLASS &lv_edgetx_table_class +#define MY_CLASS &table_class -static void edgetx_table_event(const lv_obj_class_t * class_p, lv_event_t * e); +static void table_event(const lv_obj_class_t * class_p, lv_event_t * e); -const lv_obj_class_t lv_edgetx_table_class = { +const lv_obj_class_t table_class = { .constructor_cb = NULL, .destructor_cb = NULL, - .event_cb = edgetx_table_event, + .event_cb = table_event, .width_def = LV_SIZE_CONTENT, .height_def = LV_SIZE_CONTENT, .base_class = &lv_table_class, @@ -19,7 +19,7 @@ const lv_obj_class_t lv_edgetx_table_class = { }; -lv_obj_t * edgetx_table_create(lv_obj_t * parent) +lv_obj_t * table_create(lv_obj_t * parent) { lv_obj_t * obj = lv_obj_class_create_obj(MY_CLASS, parent); lv_obj_class_init_obj(obj); @@ -27,7 +27,7 @@ lv_obj_t * edgetx_table_create(lv_obj_t * parent) } -static void edgetx_table_event(const lv_obj_class_t * class_p, lv_event_t * e) +static void table_event(const lv_obj_class_t * class_p, lv_event_t * e) { lv_res_t res; diff --git a/radio/src/thirdparty/libopenui/src/widgets/edgetx_table.h b/radio/src/thirdparty/libopenui/src/widgets/edgetx_table.h index 613753471..c1c7146e5 100644 --- a/radio/src/thirdparty/libopenui/src/widgets/edgetx_table.h +++ b/radio/src/thirdparty/libopenui/src/widgets/edgetx_table.h @@ -6,8 +6,8 @@ extern "C" { #endif -extern const lv_obj_class_t lv_edgetx_table_class; -lv_obj_t* edgetx_table_create(lv_obj_t* parent); +extern const lv_obj_class_t table_class; +lv_obj_t* table_create(lv_obj_t* parent); #ifdef __cplusplus };