init_nhwindows(int* argcp, char** argv) -- Initialize the windows used by NetHack. This can also create the standard windows listed at the top, but does not display them. -- Any commandline arguments relevant to the windowport should be interpreted, and *argcp and *argv should be changed to
| 66 | ** windows? Or at least all but WIN_INFO? -dean |
| 67 | */ |
| 68 | void |
| 69 | gnome_init_nhwindows(int *argc, char **argv) |
| 70 | { |
| 71 | /* Main window */ |
| 72 | ghack_init_main_window(*argc, argv); |
| 73 | ghack_init_signals(); |
| 74 | |
| 75 | #ifdef HACKDIR |
| 76 | // if (ghack_init_glyphs(HACKDIR "/t32-1024.xpm")) |
| 77 | if (ghack_init_glyphs(HACKDIR "/x11tiles")) |
| 78 | g_error("ERROR: Could not initialize glyphs.\n"); |
| 79 | #else |
| 80 | #error HACKDIR is not defined! |
| 81 | #endif |
| 82 | |
| 83 | // gnome/gtk is not reentrant |
| 84 | set_option_mod_status("ignintr", set_gameview); |
| 85 | flags.ignintr = TRUE; |
| 86 | |
| 87 | iflags.window_inited = TRUE; |
| 88 | |
| 89 | /* gnome-specific window creation */ |
| 90 | WIN_WORN = gnome_create_nhwindow(NHW_WORN); |
| 91 | } |
| 92 | |
| 93 | /* Do a window-port specific player type selection. If player_selection() |
| 94 | offers a Quit option, it is its responsibility to clean up and terminate |
nothing calls this directly
no test coverage detected