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

Function GetDialogPrompt

win/X11/dialogs.c:220–231  ·  view source on GitHub ↗

get the prompt from the dialog box. Used a startup time to * save away the initial prompt */

Source from the content-addressed store, hash-verified

218/* get the prompt from the dialog box. Used a startup time to
219 * save away the initial prompt */
220String
221GetDialogPrompt(Widget w)
222{
223 Arg args[1];
224 Widget label;
225 String s;
226
227 label = XtNameToWidget(w, "prompt");
228 XtSetArg(args[0], nhStr(XtNlabel), &s);
229 XtGetValues(label, args, ONE);
230 return XtNewString(s);
231}
232#endif
233
234/* set the prompt. This is used to put error information in the prompt */

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected