gnome does not like ^C

This hack simply causes ^C to be ignored completely by the gnome interface.
Gnome really cannot handle interrupts, and the window port interface does
not currently provide a way for the gnome interface to just quit.  Allowing
the gnome interface to prompt would require a complete overhall to the the
way window ports work.
This commit is contained in:
cohrs
2003-10-21 01:06:05 +00:00
parent 50f7d77325
commit eab9e5f0a3
2 changed files with 5 additions and 3 deletions

View File

@@ -79,6 +79,7 @@ X11: avoid a possible crash when using window manger to close a player
Gnome: add Quiver menu item, fix outdated Quit menu item
Gnome: key values on unsigned char platform could fail to compare correctly
Gnome: real extended command menu so all extended commands can be entered
Gnome: ignore interrupts to avoid infinite loop in gnome library
tty: avoid crash displaying quit inventory if inventory was already displayed

View File

@@ -106,9 +106,10 @@ void gnome_init_nhwindows(int* argc, char** argv)
# error HACKDIR is not defined!
#endif
/* Force wizard mode on for debugging */
//wizard = TRUE;
// gnome/gtk is not reentrant
set_option_mod_status("ignintr", DISP_IN_GAME);
flags.ignintr = TRUE;
iflags.window_inited = TRUE;
/* gnome-specific window creation */