diff -r 59d97ac069f0 -r a29b53f97d1a ui/gtk/list.h --- a/ui/gtk/list.h Tue Sep 08 16:08:59 2026 +0200 +++ b/ui/gtk/list.h Wed Sep 09 18:57:52 2026 +0200 @@ -30,6 +30,7 @@ #define LIST_H #include "../ui/list.h" +#include "../ui/tree.h" #include "toolkit.h" #include @@ -98,6 +99,10 @@ void *onsavedata; UiListSelection selection; + ui_tree_getdepthfunc getdepth; + void *getdepthdata; + UiBool istreeview; + }; typedef struct UiTreeEventData { @@ -139,6 +144,7 @@ UiSubListEventData current_eventdata; }; +void* ui_null_getvalue(UiList *list, void *elm, int row, int col, void *userdata, UiBool *freeResult); #if GTK_CHECK_VERSION(4, 10, 0) @@ -160,10 +166,6 @@ void* ui_strmodel_getvalue(void *elm, int column); -UIWIDGET ui_listview_var(UiObject *obj, UiVar *var, ui_getvaluefunc getvalue, ui_callback f, void *udata); -UIWIDGET ui_table_var(UiObject *obj, UiVar *var, UiModel *model, UiListCallbacks cb); - -GtkWidget* ui_get_tree_widget(UIWIDGET widget); void ui_listview_update_model(UiModel *model, void *userdata, int insert_index, int delete_index); void ui_listview_update(UiList *list, int i); @@ -211,6 +213,18 @@ UiListSelection ui_listbox_list_getselection(UiList *list); void ui_listbox_row_activate(GtkListBox *self, GtkListBoxRow *row, gpointer user_data); + +#if GTK_CHECK_VERSION(4, 10, 0) + +typedef struct _ObjWrapper { + GObject parent_instance; + void *data; + int i; +} ObjWrapper; + +ObjWrapper* ui_gobj_wrapper_new(void* data, int i); + +#endif #ifdef __cplusplus }