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

Function gendertoggleCallback

win/X11/winmisc.c:673–693  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

671}
672
673static void
674gendertoggleCallback(Widget w, XtPointer client, XtPointer call)
675{
676 int i, r = xtp2i(XawToggleGetCurrent(plsel_gend_radios[0])) - 1;
677
678 nhUse(w);
679 nhUse(client);
680 nhUse(call);
681
682 plsel_set_play_button(r < 0);
683
684 for (i = 0; roles[i].name.m; i++) {
685 if (roles[i].name.f) {
686 Arg args[2];
687
688 XtSetArg(args[0], XtNlabel,
689 (r < 1) ? roles[i].name.m : roles[i].name.f);
690 XtSetValues(plsel_role_radios[i], args, ONE);
691 }
692 }
693}
694
695static void
696aligntoggleCallback(Widget w, XtPointer client, XtPointer call)

Callers

nothing calls this directly

Calls 2

xtp2iFunction · 0.85
plsel_set_play_buttonFunction · 0.85

Tested by

no test coverage detected