--- a/ui/gtk/list.h Wed Sep 03 17:48:46 2025 +0200 +++ b/ui/gtk/list.h Sat Sep 06 12:40:04 2025 +0200 @@ -40,6 +40,13 @@ typedef struct UiColData UiColData; +#if GTK_CHECK_VERSION(4, 10, 0) +typedef struct UiRowItems { + int bound; + GtkListItem *items[]; +} UiRowItems; +#endif + typedef struct UiListView { UiObject *obj; GtkWidget *widget; @@ -47,7 +54,7 @@ UiModel *model; ui_getvaluefunc2 getvalue; void *getvaluedata; - ui_getstylefunc getstyle; + ui_getstylefunc getstyle; void *getstyledata; char **elements; size_t nelm; @@ -55,9 +62,11 @@ UiTextStyle row_style; UiBool apply_row_style; #if GTK_CHECK_VERSION(4, 10, 0) + CxMap *bound_rows; GListStore *liststore; GtkSelectionModel *selectionmodel; UiColData *columns; + int numcolumns; PangoAttrList *default_attributes; // TODO: remove PangoAttrList *current_row_attributes; #else