diff -r 86fbc80f0be7 -r a080c69125d1 ui/gtk/container.c --- a/ui/gtk/container.c Thu Dec 05 16:44:05 2024 +0100 +++ b/ui/gtk/container.c Thu Dec 05 20:02:30 2024 +0100 @@ -911,6 +911,20 @@ return box; } +#else +UIWIDGET ui_sidebar_create(UiObject *obj, UiSidebarArgs args) { + GtkWidget *sidebar_vbox = g_object_get_data(G_OBJECT(obj->widget), "ui_sidebar"); + + GtkWidget *box = ui_gtk_vbox_new(args.spacing); + ui_box_set_margin(box, args.margin); + BOX_ADD_EXPAND(sidebar_vbox, box); + + UiObject *newobj = uic_object_new(obj, box); + newobj->container = ui_box_container(obj, box, UI_CONTAINER_VBOX); + uic_obj_add(obj, newobj); + + return box; +} #endif /* -------------------- Splitpane -------------------- */