ui/common/context.c

changeset 885
28ecfe5399ae
parent 875
0575ca45f1bb
child 902
6872b59217a7
--- a/ui/common/context.c	Wed Oct 29 17:25:05 2025 +0100
+++ b/ui/common/context.c	Thu Oct 30 21:29:18 2025 +0100
@@ -549,7 +549,7 @@
     cxListFree(groups);
 }
 
-void ui_widget_set_groups2(UiContext *ctx, UIWIDGET widget, ui_enablefunc enable, int *groups, int ngroups) {
+void ui_widget_set_groups2(UiContext *ctx, UIWIDGET widget, ui_enablefunc enable, const int *groups, int ngroups) {
     if(enable == NULL) {
         enable = (ui_enablefunc)ui_set_enabled;
     }
@@ -561,7 +561,7 @@
     cxListFree(ls);
 }
 
-void ui_widget_set_visibility_states(UiContext *ctx, UIWIDGET widget, int *states, int nstates) {
+void ui_widget_set_visibility_states(UiContext *ctx, UIWIDGET widget, const int *states, int nstates) {
     ui_widget_set_groups2(ctx, widget, (ui_enablefunc)ui_set_visible, states, nstates);
 }
 

mercurial