ui/common/menu.c

changeset 101
7b3a3130be44
parent 100
d2bd73d28ff1
--- a/ui/common/menu.c	Thu Dec 12 20:01:43 2024 +0100
+++ b/ui/common/menu.c	Mon Jan 06 22:22:55 2025 +0100
@@ -175,7 +175,7 @@
     mitem_set_id(&item->item);
     item->item.prev = NULL;
     item->item.next = NULL;
-    item->item.type = UI_MENU_CHECK_ITEM;
+    item->item.type = UI_MENU_RADIO_ITEM;
 
     item->label = nl_strdup(args.label);
     item->stockid = nl_strdup(args.stockid);
@@ -198,6 +198,7 @@
     item->callback = args.onselect;
     item->userdata = args.onselectdata;
     item->varname = nl_strdup(args.varname);
+    item->addseparator = args.addseparator;
     
     add_item((UiMenuItemI*)item);
 }
@@ -325,6 +326,6 @@
         free_menuitem(m);
         m = next;
     }
-    cxListDestroy(builder->current);
+    cxListFree(builder->current);
     free(builder);
 }

mercurial