diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-12-08 04:16:34 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-12-08 04:16:34 +0100 |
commit | 396686a09ef471499c11256b8516c2702f761060 (patch) | |
tree | 9215d37141ae1d387fb38dd69e5dd36466012531 /tests | |
parent | 319accba370d3f0872501de6386833fea140fbac (diff) |
Destroy widgets
Diffstat (limited to 'tests')
-rw-r--r-- | tests/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/main.c b/tests/main.c index e1aa6f1..e02d4bb 100644 --- a/tests/main.c +++ b/tests/main.c @@ -13,7 +13,7 @@ static mgui_list* create_list_item(const char *title, const char *description) { mgui_list *container = mgui_list_create(MGUI_LIST_HORIZONITAL); mgui_list_set_background_color(container, (mgl_color){ 255, 0, 0, 255 }); - mgui_list_append(container, mgui_button_to_widget(mgui_button_create())); + mgui_list_append(container, mgui_button_to_widget(mgui_button_create("button", 6, 30))); mgui_list *list = mgui_list_create(MGUI_LIST_VERTICAL); mgui_list_append(container, mgui_list_to_widget(list)); @@ -54,6 +54,7 @@ int main() { mgl_window_display(&window); } + mgui_widget_destroy(mgui_scrollview_to_widget(scrollview)); mgl_deinit(); return 0; } |