diff -r 88bc21b19213 -r 097f45f9c1fa ui/ui/tree.h --- a/ui/ui/tree.h Fri Oct 20 16:34:33 2023 +0200 +++ b/ui/ui/tree.h Sun Nov 26 15:44:28 2023 +0100 @@ -41,7 +41,6 @@ typedef struct UiListDnd UiListDnd; typedef struct UiListArgs UiListArgs; -typedef struct UiPathBarArgs UiPathBarArgs; typedef enum UiModelType { UI_STRING = 0, @@ -135,31 +134,6 @@ UiBool multiselection; }; -struct UiPathBarArgs { - UiTri fill; - UiBool hexpand; - UiBool vexpand; - int colspan; - int rowspan; - - UiList* list; - const char* varname; - UiModel* model; - ui_getvaluefunc getvalue; - ui_callback onactivate; - void* onactivatedata; - ui_callback ontextinput; - void* ontextinputdata; - ui_callback ondragstart; - void* ondragstartdata; - ui_callback ondragcomplete; - void* ondragcompletedata; - ui_callback ondrop; - void* ondropsdata; - UiBool enabledrag; - UiBool enabledrop; -}; - UIEXPORT UiModel* ui_model(UiContext *ctx, ...); UIEXPORT UiModel* ui_model_copy(UiContext *ctx, UiModel* model); UIEXPORT void ui_model_free(UiContext *ctx, UiModel *mi); @@ -168,13 +142,11 @@ #define ui_table(obj, ...) ui_table_create(obj, (UiListArgs) { __VA_ARGS__ } ) #define ui_combobox(obj, ...) ui_combobox_create(obj, (UiListArgs) { __VA_ARGS__ } ) #define ui_breadcrumbbar(obj, ...) ui_breadcrumbbar_create(obj, (UiListArgs) { __VA_ARGS__ } ) -#define ui_pathbar(obj, ...) ui_pathbar_create(obj, (UiPathBarArgs) { __VA_ARGS__ } ) UIEXPORT UIWIDGET ui_listview_create(UiObject* obj, UiListArgs args); UIEXPORT UIWIDGET ui_table_create(UiObject* obj, UiListArgs args); UIEXPORT UIWIDGET ui_combobox_create(UiObject* obj, UiListArgs args); UIEXPORT UIWIDGET ui_breadcrumbbar_create(UiObject* obj, UiListArgs args); -UIEXPORT UIWIDGET ui_pathbar_create(UiObject* obj, UiPathBarArgs args); void ui_table_dragsource(UIWIDGET tablewidget, int actions, char *target0, ...);