additional gnome SAFERHANGUP changes
Found more places where gnome interface wasn't cleaning up.
This commit is contained in:
+3
-3
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user