diff -r 1ebc781c7d17 -r 8086681cabfb ui/common/context.c --- a/ui/common/context.c Sun Jun 15 11:21:48 2025 +0200 +++ b/ui/common/context.c Sun Jun 15 12:09:28 2025 +0200 @@ -476,7 +476,7 @@ ctx->close_data = udata; } -UIEXPORT void ui_context_destroy(UiContext *ctx) { +void ui_context_destroy(UiContext *ctx) { CxIterator i = cxListIterator(ctx->destroy_handler); cx_foreach(UiDestroyHandler *, h, i) { h->destructor(h->data); @@ -484,6 +484,10 @@ cxMempoolFree(ctx->mp); } +UiContext* ui_context_parent(UiContext *ctx) { + return ctx->parent; +} + void ui_set_group(UiContext *ctx, int group) { if(!cxListIndexValid(ctx->groups, cxListFind(ctx->groups, &group))) {