application/main.c

changeset 438
7b1d715e5c11
parent 436
222205801430
--- a/application/main.c	Sun Jan 05 16:56:05 2025 +0100
+++ b/application/main.c	Sun Jan 05 17:31:53 2025 +0100
@@ -414,7 +414,7 @@
         ui_tab(obj, "Tab 1") {
             UiModel *model = ui_model(obj->ctx, UI_STRING, "col1", UI_INTEGER, "col2", UI_ICON, "col3", UI_ICON_TEXT, "col4", UI_INTEGER, "col5", -1);
             model->getvalue = table_getvalue;
-            ui_table(obj, .model = model, .list = doc->list2, .colspan = 2, .fill = UI_ON, .contextmenu = menubuilder, .multiselection = TRUE,
+            ui_listview(obj, .model = model, .list = doc->list2, .colspan = 2, .fill = UI_ON, .contextmenu = menubuilder, .multiselection = TRUE,
                     .onactivate = action_table_activate, .onactivatedata = "activate",
                     .onselection = action_table_activate, .onselectiondata = "selection");
         }

mercurial