ui/common/menu.c

branch
newapi
changeset 421
3b969399f962
parent 419
7d15cad351fc
equal deleted inserted replaced
420:28a5920bebe0 421:3b969399f962
196 item->item.type = UI_MENU_ITEM_LIST; 196 item->item.type = UI_MENU_ITEM_LIST;
197 item->getvalue = args.getvalue; 197 item->getvalue = args.getvalue;
198 item->callback = args.onselect; 198 item->callback = args.onselect;
199 item->userdata = args.onselectdata; 199 item->userdata = args.onselectdata;
200 item->varname = nl_strdup(args.varname); 200 item->varname = nl_strdup(args.varname);
201 item->addseparator = args.addseparator;
201 202
202 add_item((UiMenuItemI*)item); 203 add_item((UiMenuItemI*)item);
203 } 204 }
204 205
205 void ui_menu_checkitemlist_create(UiMenuItemListArgs args) { 206 void ui_menu_checkitemlist_create(UiMenuItemListArgs args) {

mercurial