additional gnome SAFERHANGUP changes

Found more places where gnome interface wasn't cleaning up.
This commit is contained in:
cohrs
2003-10-15 02:36:34 +00:00
parent dbc6ff00df
commit bf476cae6e
2 changed files with 5 additions and 3 deletions
+3 -3
View File
@@ -350,10 +350,10 @@ void gnome_askname()
"GnomeHack", plname); "GnomeHack", plname);
/* Quit if they want to quit... */ /* Quit if they want to quit... */
if (ret==-1) if (ret==-1) {
{ clearlocks();
gtk_exit(0); gtk_exit(0);
} }
} }
+2
View File
@@ -33,6 +33,7 @@ void ghack_quit_game(GtkWidget *widget, int button)
if (button == 0) { if (button == 0) {
gnome_exit_nhwindows(0); gnome_exit_nhwindows(0);
gtk_object_unref(GTK_OBJECT(session_id)); gtk_object_unref(GTK_OBJECT(session_id));
clearlocks();
gtk_exit(0); gtk_exit(0);
} }
} }
@@ -65,6 +66,7 @@ void ghack_save_game(GtkWidget *widget, int button)
/* make sure they see the Saving message */ /* make sure they see the Saving message */
display_nhwindow(WIN_MESSAGE, TRUE); display_nhwindow(WIN_MESSAGE, TRUE);
gnome_exit_nhwindows("Be seeing you..."); gnome_exit_nhwindows("Be seeing you...");
clearlocks();
gtk_exit(0); gtk_exit(0);
} else (void)doredraw(); } else (void)doredraw();
} }