--- mahjongg.old/mahjongg.c	Wed Jun  5 18:21:32 2002
+++ mahjongg/mahjongg.c	Tue Jul  9 13:12:32 2002
@@ -1429,6 +1429,34 @@
 }
 
 void
+maybe_quit (GtkWidget *widget, gpointer data)
+{
+    GtkWidget *dialog;
+    gint response;
+    gchar *label = _("Really exit GNOME Mahjongg?");
+
+    if (game_over == GAME_RUNNING)
+    {
+        dialog = gtk_message_dialog_new (GTK_WINDOW (window),
+             GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
+             GTK_MESSAGE_QUESTION,
+             GTK_BUTTONS_NONE,
+             label);
+        gtk_dialog_add_buttons (GTK_DIALOG (dialog), GTK_STOCK_CANCEL, 1,
+                                GTK_STOCK_QUIT, 2, 0, 0);
+        gtk_dialog_set_default_response (GTK_DIALOG (dialog), 1); 
+    
+        response = gtk_dialog_run (GTK_DIALOG (dialog));
+        gtk_widget_destroy (dialog);
+        
+        if (response == 1) {
+            return;
+        }
+    }
+    gtk_main_quit();
+            
+}
+void
 confirm_action (GtkWidget *widget, gpointer data)
 {
 	gboolean doit = TRUE;
@@ -1442,10 +1470,12 @@
 		case RESTART_GAME :
 			confirm_text = _("Really restart this game?");
 			break;
+#if 0
 		case QUIT_GAME :
 			/* GNOME IS AN ACRONYM, DAMNIT! */
 			confirm_text = _("Really exit GNOME Mahjongg?");
 			break;
+#endif
 		case NEW_GAME:
 		case NEW_GAME_WITH_SEED:
 			confirm_text = _("Really start a new game?");
@@ -1478,9 +1508,11 @@
 		case RESTART_GAME:
 			restart_game ();
 			break;
+#if 0
 		case QUIT_GAME:
 			gtk_main_quit ();
 			break;
+#endif
 		default:
 			break;
 		}
@@ -1490,7 +1522,7 @@
 gboolean
 delete_event_callback (GtkWidget *widget, GdkEventAny *any, gpointer data)
 {
-        confirm_action (widget, data);
+        maybe_quit (widget, data);
         return TRUE;
 }
@@ -1908,7 +1940,7 @@
 
         do {
                 num_shuffle++;
-                /* We do a circular permutation (FIXME: check the english term...)*/
+                /* We do a circular permutation */
                 for (i=0; i<MAX_TILES; i++) {
                         if (tiles[i].visible) {
                                 if (first) {
                 
