ui/common/menu.c

branch
newapi
changeset 419
7d15cad351fc
parent 404
384f6d1f5784
equal deleted inserted replaced
418:a57268d20ed9 419:7d15cad351fc
173 void ui_menu_radioitem_create(UiMenuToggleItemArgs args) { 173 void ui_menu_radioitem_create(UiMenuToggleItemArgs args) {
174 UiMenuCheckItem* item = malloc(sizeof(UiMenuCheckItem)); 174 UiMenuCheckItem* item = malloc(sizeof(UiMenuCheckItem));
175 mitem_set_id(&item->item); 175 mitem_set_id(&item->item);
176 item->item.prev = NULL; 176 item->item.prev = NULL;
177 item->item.next = NULL; 177 item->item.next = NULL;
178 item->item.type = UI_MENU_CHECK_ITEM; 178 item->item.type = UI_MENU_RADIO_ITEM;
179 179
180 item->label = nl_strdup(args.label); 180 item->label = nl_strdup(args.label);
181 item->stockid = nl_strdup(args.stockid); 181 item->stockid = nl_strdup(args.stockid);
182 item->icon = nl_strdup(args.icon); 182 item->icon = nl_strdup(args.icon);
183 item->varname = nl_strdup(args.varname); 183 item->varname = nl_strdup(args.varname);

mercurial