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

View File

@@ -350,10 +350,10 @@ void gnome_askname()
"GnomeHack", plname);
/* Quit if they want to quit... */
if (ret==-1)
{
if (ret==-1) {
clearlocks();
gtk_exit(0);
}
}
}

View File

@@ -33,6 +33,7 @@ void ghack_quit_game(GtkWidget *widget, int button)
if (button == 0) {
gnome_exit_nhwindows(0);
gtk_object_unref(GTK_OBJECT(session_id));
clearlocks();
gtk_exit(0);
}
}
@@ -65,6 +66,7 @@ void ghack_save_game(GtkWidget *widget, int button)
/* make sure they see the Saving message */
display_nhwindow(WIN_MESSAGE, TRUE);
gnome_exit_nhwindows("Be seeing you...");
clearlocks();
gtk_exit(0);
} else (void)doredraw();
}