Gnome basic functionality

- let the "#" key work as per Guidebook
- role selection didn't work if you had gender specified in your .nethackrc
  similar problems would occur for other .nethackrc selections
- fix an obvious memory leak
- fix one crash bug from accessing a freed pointer (M-? dismiss M-?)
- note some invalid behavior in comments for a real Gnome developer to fix
- reformatted some code so I could follow it
This commit is contained in:
cohrs
2002-03-17 20:16:57 +00:00
parent 0ffb78e6a4
commit 61b6bf1ce9
4 changed files with 207 additions and 204 deletions
+3 -2
View File
@@ -138,7 +138,8 @@ ghack_about_cb(GtkWidget *widget, gpointer data)
_("\nSend comments and bug reports to: nethack-bugs@nethack.org\n"
"This game is free software. See License for details."));
about = gnome_about_new(_("Nethack"),
buf1, "(C) 1985-2000 Mike Stephenson", (const char **)authors, buf,
buf1, "Copyright (C) 1985-2002 Mike Stephenson",
(const char **)authors, buf,
NULL);
gtk_signal_connect (GTK_OBJECT (about), "destroy",
@@ -720,6 +721,7 @@ void ghack_init_main_window( int argc, char** argv)
if (uid != euid)
setuid(uid);
hide_privileges(TRUE);
/* XXX gnome_init must print nethack options for --help, but does not */
gnome_init ("nethack", VERSION_STRING, argc, argv);
hide_privileges(FALSE);
parse_args (argc, argv);
@@ -821,4 +823,3 @@ ghack_get_main_window()
{
return( GTK_WIDGET(mainWindow) );
}