application/main.c

changeset 967
ff4a8d10307b
parent 966
e411ed7c5f10
child 969
7385c26d998d
--- a/application/main.c	Sun Dec 07 15:23:03 2025 +0100
+++ b/application/main.c	Sun Dec 07 15:28:46 2025 +0100
@@ -409,18 +409,18 @@
 void action_group1(UiEvent *event, void *userdata) {
     UiContext *ctx = event->obj->ctx;
     if(userdata) {
-        ui_unset_group(ctx, 1);
+        ui_unset_state(ctx, 1);
     } else {
-        ui_set_group(ctx, 1);
+        ui_set_state(ctx, 1);
     }
 }
 
 void action_group2(UiEvent *event, void *userdata) {
     UiContext *ctx = event->obj->ctx;
     if(userdata) {
-        ui_unset_group(ctx, 2);
+        ui_unset_state(ctx, 2);
     } else {
-        ui_set_group(ctx, 2);
+        ui_set_state(ctx, 2);
     }
 }
 
@@ -1002,9 +1002,9 @@
 static void action_show_button1(UiEvent *event, void *data) {
     WData *wdata = event->window;
     if(event->intval) {
-        ui_set_group(event->obj->ctx, 10);
+        ui_set_state(event->obj->ctx, 10);
     } else {
-        ui_unset_group(event->obj->ctx, 10);
+        ui_unset_state(event->obj->ctx, 10);
     }
 }
 
@@ -1064,7 +1064,7 @@
     }
     
     ui_set(wdata->checkbox1, 1);
-    ui_set_group(obj->ctx, 10);
+    ui_set_state(obj->ctx, 10);
     
     
     ui_show(obj);

mercurial