From 396686a09ef471499c11256b8516c2702f761060 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 8 Dec 2021 04:16:34 +0100 Subject: Destroy widgets --- tests/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/main.c') 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; } -- cgit v1.2.3