From ddb5e7c8313d80b2bc1b452f14d531d143d102c6 Mon Sep 17 00:00:00 2001 From: Enrico Tassi Date: Wed, 30 May 2007 08:33:54 +0000 Subject: [PATCH] now the window can be closed also using X --- helm/software/matita/matitaAutoGui.ml | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.39.2