X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fmatita%2FmatitaGui.ml;h=5ac24f8f66c9abdd262e6f477dd368188edc01e9;hb=249d79bebff886846fbab65cc079623d90684baf;hp=fa6059d1ea0eebb8139ac900f86e767074daeacd;hpb=fccf05646ed2e47a81290a2884191edbddcaa169;p=helm.git diff --git a/helm/matita/matitaGui.ml b/helm/matita/matitaGui.ml index fa6059d1e..5ac24f8f6 100644 --- a/helm/matita/matitaGui.ml +++ b/helm/matita/matitaGui.ml @@ -156,8 +156,8 @@ class gui () = connect_button tbar#introsButton (tac (A.Intros (loc, None, []))); connect_button tbar#applyButton (tac_w_term (A.Apply (loc, hole))); connect_button tbar#exactButton (tac_w_term (A.Exact (loc, hole))); - connect_button tbar#elimButton (tac_w_term (A.Elim (loc, hole, None))); - connect_button tbar#elimTypeButton (tac_w_term (A.ElimType (loc, hole))); + connect_button tbar#elimButton (tac_w_term (A.Elim (loc, hole, None, None, []))); + connect_button tbar#elimTypeButton (tac_w_term (A.ElimType (loc, hole, None, None, []))); connect_button tbar#splitButton (tac (A.Split loc)); connect_button tbar#leftButton (tac (A.Left loc)); connect_button tbar#rightButton (tac (A.Right loc)); @@ -186,9 +186,7 @@ class gui () = (* log *) MatitaLog.set_log_callback self#console#log_callback; GtkSignal.user_handler := - (fun exn -> - MatitaLog.error - (sprintf "Uncaught exception: %s" (Printexc.to_string exn))); + (fun exn -> MatitaLog.error (MatitaExcPp.to_string exn)); (* script *) let _ = match GSourceView.source_language_from_file BuildTimeConf.lang_file with @@ -262,7 +260,9 @@ class gui () = () in match rc with - | `YES -> saveScript ();GMain.Main.quit () + | `YES -> saveScript (); + if not source_view#buffer#modified then + GMain.Main.quit () | `NO -> GMain.Main.quit () | `CANCEL -> () end else GMain.Main.quit ());