| 339 | Widget plsel_btn_play; |
| 340 | |
| 341 | static void |
| 342 | plsel_dialog_acceptvalues(void) |
| 343 | { |
| 344 | Arg args[2]; |
| 345 | String s; |
| 346 | |
| 347 | flags.initrace = xtp2i(XawToggleGetCurrent(plsel_race_radios[0])) - 1; |
| 348 | flags.initrole = xtp2i(XawToggleGetCurrent(plsel_role_radios[0])) - 1; |
| 349 | flags.initgend = xtp2i(XawToggleGetCurrent(plsel_gend_radios[0])) - 1; |
| 350 | flags.initalign = xtp2i(XawToggleGetCurrent(plsel_align_radios[0])) - 1; |
| 351 | |
| 352 | XtSetArg(args[0], nhStr(XtNstring), &s); |
| 353 | XtGetValues(plsel_name_input, args, ONE); |
| 354 | |
| 355 | (void) strncpy(svp.plname, (char *) s, sizeof svp.plname - 1); |
| 356 | svp.plname[sizeof svp.plname - 1] = '\0'; |
| 357 | (void) mungspaces(svp.plname); |
| 358 | if (strlen(svp.plname) < 1) |
| 359 | (void) strcpy(svp.plname, "Mumbles"); |
| 360 | iflags.renameinprogress = FALSE; |
| 361 | } |
| 362 | |
| 363 | /* ARGSUSED */ |
| 364 | void |
no test coverage detected