diff -r a29b53f97d1a -r 4163776eef49 ui/gtk/tree.h --- a/ui/gtk/tree.h Wed Sep 09 18:57:52 2026 +0200 +++ b/ui/gtk/tree.h Thu Sep 10 17:36:06 2026 +0200 @@ -30,46 +30,14 @@ #define TREE_H #include "../ui/tree.h" +#include "list.h" #include "toolkit.h" #ifdef __cplusplus extern "C" { #endif -typedef struct UiTreeView UiTreeView; - -struct UiTreeView { - UiObject *obj; - GtkWidget *widget; - UiVar *var; - UiModel *model; - UiBool multiselection; - ui_tree_getdepthfunc getdepth; - void *getdepthdata; - ui_getvaluefunc2 getvalue; - void *getvaluedata; - - ui_callback onactivate; - void *onactivatedata; - char *onactivate_action; - ui_callback onselection; - void *onselectiondata; - char *onselection_action; - ui_callback ondragstart; - void *ondragstartdata; - char *ondragstart_action; - ui_callback ondragcomplete; - void *ondragcompletedata; - char *ondragcomplete_action; - ui_callback ondrop; - void *ondropdata; - char *ondrop_action; -}; - -typedef struct UiTreeColData { - UiTreeView *treeview; - int column; -} UiTreeColData; +UiListView* ui_create_treeview(UiObject *obj, UiTreeArgs *args); #ifdef __cplusplus