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: make_still_working~6270 X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=commitdiff_plain;h=ddb5e7c8313d80b2bc1b452f14d531d143d102c6;p=helm.git now the window can be closed also using X --- diff --git a/helm/software/matita/matitaAutoGui.ml b/helm/software/matita/matitaAutoGui.ml index 06b6b5f1e..9ba6dd898 100644 --- a/helm/software/matita/matitaAutoGui.ml +++ b/helm/software/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