]> matita.cs.unibo.it Git - helm.git/commitdiff
now the window can be closed also using X
authorEnrico Tassi <enrico.tassi@inria.fr>
Wed, 30 May 2007 08:33:54 +0000 (08:33 +0000)
committerEnrico Tassi <enrico.tassi@inria.fr>
Wed, 30 May 2007 08:33:54 +0000 (08:33 +0000)
helm/software/matita/matitaAutoGui.ml

index 06b6b5f1e9e8696aaef3f78d976f7d1acf3ed8ca..9ba6dd89828052a7e084cc0a42e9ec3e54f3122c 100644 (file)
@@ -190,6 +190,12 @@ let auto_dialog elems =
       Auto.step ();
       win#toplevel#destroy ();
       GMain.Main.quit ()));
+  ignore(win#toplevel#event#connect#delete
+    (fun _ -> 
+      Auto.pause false;
+      Auto.step ();
+      win#toplevel#destroy ();
+      GMain.Main.quit ();true));
   let redraw_callback _ = fill_win win elems;true in
   let redraw = GMain.Timeout.add ~ms:400 ~callback:redraw_callback in
   ignore(win#buttonPAUSE#connect#clicked