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
View File
@@ -40,6 +40,7 @@ void ghack_text_window_clear(GtkWidget *widget, gpointer data)
void ghack_text_window_destroy()
{
TW_window = NULL;
}
void ghack_text_window_display(GtkWidget *widget, boolean block,
@@ -50,6 +51,8 @@ void ghack_text_window_display(GtkWidget *widget, boolean block,
gtk_window_set_title(GTK_WINDOW( TW_window), "Rest In Peace");
}
gtk_signal_connect (GTK_OBJECT (TW_window), "destroy",
(GtkSignalFunc) ghack_text_window_destroy, NULL);
if (block)
gnome_dialog_run(GNOME_DIALOG(TW_window));
else