MCPcopy Create free account
hub / github.com/NetHack/NetHack / plsel_play

Function plsel_play

win/X11/winmisc.c:377–397  ·  view source on GitHub ↗

ARGSUSED */

Source from the content-addressed store, hash-verified

375
376/* ARGSUSED */
377void
378plsel_play(Widget w, XEvent *event, String *params, Cardinal *num_params)
379{
380 Arg args[2];
381 Boolean state;
382
383 nhUse(w);
384 nhUse(event);
385 nhUse(params);
386 nhUse(num_params);
387
388 XtSetArg(args[0], nhStr(XtNsensitive), &state);
389 XtGetValues(plsel_btn_play, args, ONE);
390
391 if (state) {
392 plsel_dialog_acceptvalues();
393 exit_x_event = TRUE; /* leave event loop */
394 } else {
395 X11_nhbell();
396 }
397}
398
399/* ARGSUSED */
400void

Callers

nothing calls this directly

Calls 2

X11_nhbellFunction · 0.85

Tested by

no test coverage detected