--- a/ui/gtk/container.h Mon Dec 30 12:50:52 2024 +0100 +++ b/ui/gtk/container.h Mon Dec 30 19:48:05 2024 +0100 @@ -34,6 +34,7 @@ #include <string.h> #include <cx/allocator.h> +#include <cx/hash_map.h> #ifdef __cplusplus extern "C" { @@ -133,6 +134,21 @@ UiHeaderbarAlternative alternative; /* only used by fallback headerbar */ } UiHeaderbarContainer; +typedef struct UiGtkItemListContainer { + UiObject *parent; + GtkWidget *widget; + UiContainer *container; + void (*create_ui)(UiObject *, int, void *, void *); + void *userdata; + UiSubContainerType subcontainer; + CxMap *current_items; + int margin; + int spacing; + int columnspacing; + int rowspacing; + bool remove_items; +} UiGtkItemListContainer; + GtkWidget* ui_gtk_vbox_new(int spacing); GtkWidget* ui_gtk_hbox_new(int spacing);