From: cohrs Date: Tue, 21 Oct 2003 01:06:05 +0000 (+0000) Subject: gnome does not like ^C X-Git-Tag: MOVE2GIT~1677 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eab9e5f0a36427be88bb85d2978dfbd780ae199a;p=nethack 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. --- diff --git a/doc/fixes34.3 b/doc/fixes34.3 index 6c995ced4..99bfc4904 100644 --- a/doc/fixes34.3 +++ b/doc/fixes34.3 @@ -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 diff --git a/win/gnome/gnbind.c b/win/gnome/gnbind.c index cb9c29f2e..6527edcb2 100644 --- a/win/gnome/gnbind.c +++ b/win/gnome/gnbind.c @@ -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 */