From: Enrico Tassi Date: Wed, 30 May 2007 08:33:54 +0000 (+0000) Subject: now the window can be closed also using X X-Git-Tag: 0.4.95@7852~421 X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=commitdiff_plain;h=1ff31b4d82a571e61806c32e90705a3205409b53;p=helm.git now the window can be closed also using X --- diff --git a/matita/matitaAutoGui.ml b/matita/matitaAutoGui.ml index 06b6b5f1e..9ba6dd898 100644 --- a/matita/matitaAutoGui.ml +++ b/matita/matitaAutoGui.ml @@ -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