X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fmatita%2Fmatita.ml;h=9551729a43e6bbf3a03ca23945ed95bfb35c9d2b;hb=ab7910f821b16fceae542ac7a7588b93051d7359;hp=40592d001eadd88b638242d60fd916bb8bcfa4f0;hpb=dfad83fbd13bfec107d1f7a9533c90b7bb862dcf;p=helm.git diff --git a/helm/matita/matita.ml b/helm/matita/matita.ml index 40592d001..9551729a4 100644 --- a/helm/matita/matita.ml +++ b/helm/matita/matita.ml @@ -35,7 +35,6 @@ let _ = Helm_registry.load_from "matita.conf.xml"; (* read conf *) Http_getter.init (); MetadataTypes.ownerize_tables (Helm_registry.get "matita.owner"); - MatitaDb.clean_owner_environment (); MatitaDb.create_owner_environment (); GtkMain.Rc.add_default_file BuildTimeConf.gtkrc_file; (* loads gtk rc *) ignore (GMain.Main.init ()); @@ -86,6 +85,11 @@ let script = ~copy_cb:(fun s -> gui#sourceView#buffer#insert ("\n"^s^"\n")) () ~id:"boh?" uris with MatitaTypes.Cancel -> []) + ~set_star:gui#setStar + ~ask_confirmation: + (fun ~title ~message -> + MatitaGtkMisc.ask_confirmation ~title ~message + ~parent:gui#main#toplevel ()) () (* math viewers *) @@ -143,12 +147,6 @@ let _ = (MatitaMathView.sequentViewer_instance ())#get_selected_terms); addDebugItem "dump getter settings" (fun _ -> prerr_endline (Http_getter_env.env_to_string ())); - addDebugItem "getter: update" - (fun _ -> - ignore (Thread.create (fun () -> - MatitaLog.message "Rebuilding getter maps in background ..."; - Http_getter.update (); - MatitaLog.message "Getter maps successfully rebuilt.") ())); addDebugItem "getter: getalluris" (fun _ -> List.iter prerr_endline (Http_getter.getalluris ())); addDebugItem "dump script status" script#dump; @@ -179,11 +177,7 @@ let _ = (** *) let _ = - at_exit - (fun () -> - Http_getter_logger.log "Sync map tree to disk..."; - Http_getter.sync_dump_file (); - print_endline "\nThanks for using Matita!\n"); + at_exit (fun () -> print_endline "\nThanks for using Matita!\n"); Sys.catch_break true; (try gui#loadScript Sys.argv.(1);