Ask the user for a player name. */
| 345 | |
| 346 | /* Ask the user for a player name. */ |
| 347 | void |
| 348 | gnome_askname() |
| 349 | { |
| 350 | int ret; |
| 351 | |
| 352 | g_message("Asking name...."); |
| 353 | |
| 354 | /* Ask for a name and stuff the response into plname, a nethack global */ |
| 355 | ret = ghack_ask_string_dialog("What is your name?", "gandalf", |
| 356 | "GnomeHack", svp.plname); |
| 357 | |
| 358 | /* Quit if they want to quit... */ |
| 359 | if (ret == -1) { |
| 360 | clearlocks(); |
| 361 | gtk_exit(0); |
| 362 | } |
| 363 | } |
| 364 | |
| 365 | /* Does window event processing (e.g. exposure events). |
| 366 | A noop for the tty and X window-ports. |
nothing calls this directly
no test coverage detected