# HG changeset patch # User Olaf Wintermann # Date 1758642040 -7200 # Node ID 4531a342c5b365c806900ea7e0cd97d2d254282b # Parent 239d29f31cf83c12f532014f86e129c90109590e add ui_widget_set_visibility_states diff -r 239d29f31cf8 -r 4531a342c5b3 ui/common/context.c --- a/ui/common/context.c Mon Sep 22 22:25:14 2025 +0200 +++ b/ui/common/context.c Tue Sep 23 17:40:40 2025 +0200 @@ -557,6 +557,19 @@ cxListFree(groups); } +void ui_widget_set_groups2(UiContext *ctx, UIWIDGET widget, ui_enablefunc enable, int *groups, int ngroups) { + CxList *ls = cxArrayListCreate(cxDefaultAllocator, NULL, sizeof(int), ngroups); + for(int i=0;i= 0;i++) { } diff -r 239d29f31cf8 -r 4531a342c5b3 ui/ui/toolkit.h --- a/ui/ui/toolkit.h Mon Sep 22 22:25:14 2025 +0200 +++ b/ui/ui/toolkit.h Tue Sep 23 17:40:40 2025 +0200 @@ -568,6 +568,8 @@ UIEXPORT void ui_detach_document(UiContext *ctx, void *document); UIEXPORT void ui_widget_set_groups(UiContext *ctx, UIWIDGET widget, ui_enablefunc enable, ...); +UIEXPORT void ui_widget_set_groups2(UiContext *ctx, UIWIDGET widget, ui_enablefunc enable, int *groups, int ngroups); +UIEXPORT void ui_widget_set_visibility_states(UiContext *ctx, UIWIDGET widget, int *states, int nstates); UIEXPORT void ui_set_group(UiContext *ctx, int group); UIEXPORT void ui_unset_group(UiContext *ctx, int group);