]> granicus.if.org Git - nethack/commitdiff
additional gnome SAFERHANGUP changes
authorcohrs <cohrs>
Wed, 15 Oct 2003 02:36:34 +0000 (02:36 +0000)
committercohrs <cohrs>
Wed, 15 Oct 2003 02:36:34 +0000 (02:36 +0000)
Found more places where gnome interface wasn't cleaning up.

win/gnome/gnbind.c
win/gnome/gnmain.c

index 37eff8bfbabdf22f216224b8e8d1d276b50bcbd2..51829bb515fa3097adc27fef15843c362caf944e 100644 (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);
-      }
+    }
 }
 
 
index 1f993ba08d0818a03b5e56fa75a07db62900feaa..454a2f148447e94f1ae299fee87264eaf9fac675 100644 (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();
     }