get what the user typed; caller must free the response */
| 245 | |
| 246 | /* get what the user typed; caller must free the response */ |
| 247 | String |
| 248 | GetDialogResponse(Widget w) |
| 249 | { |
| 250 | Arg args[1]; |
| 251 | Widget response; |
| 252 | String s; |
| 253 | |
| 254 | response = XtNameToWidget(w, "response"); |
| 255 | XtSetArg(args[0], nhStr(XtNstring), &s); |
| 256 | XtGetValues(response, args, ONE); |
| 257 | return XtNewString(s); |
| 258 | } |
| 259 | |
| 260 | /* set the default response */ |
| 261 | void |
no outgoing calls
no test coverage detected