application/main.c

changeset 722
6466b4f16e5e
parent 704
6105e9d9b7e1
child 723
e513086eadbb
--- a/application/main.c	Sun Aug 24 13:38:16 2025 +0200
+++ b/application/main.c	Sun Aug 24 14:58:27 2025 +0200
@@ -627,8 +627,8 @@
         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->columnsize[0] = -1;
-            model->getvalue = table_getvalue;
             ui_table(obj, .model = model, .list = doc->list2, .colspan = 2, .fill = TRUE, .contextmenu = menubuilder, .multiselection = TRUE, .fill = TRUE,
+                    .getvalue = table_getvalue,
                     .onactivate = action_table_activate, .onactivatedata = "activate",
                     .onselection = action_table_activate, .onselectiondata = "selection");
             ui_hbox(obj, .fill = FALSE) {

mercurial