]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/matita/matita.ml
various updates, removed proofs for now because they are the real bottleneck!!
[helm.git] / helm / matita / matita.ml
index 6c3459c4adfa8a65de0cb1c87b5838abbd7c26fe..6e2fe2526e7d0d53d089a9ebaef533e7a11abe97 100644 (file)
@@ -65,6 +65,7 @@ let _ =
     gui#resetFontSize ();
     MatitaMathView.reset_font_size ();
     MatitaMathView.update_font_sizes ()));
+  MatitaMathView.reset_font_size ();
   (* disambiguator callback *)
   MatitaDisambiguator.set_choose_uris_callback
     (MatitaGui.interactive_uri_choice ());
@@ -85,6 +86,7 @@ let script =
         ~copy_cb:(fun s -> gui#sourceView#buffer#insert ("\n"^s^"\n"))
         () ~id:"boh?" uris
       with MatitaTypes.Cancel -> [])
+    ~set_star:gui#setStar
     ()
 
   (* math viewers *)
@@ -92,7 +94,7 @@ let _ =
   let sequent_viewer = MatitaMathView.sequentViewer_instance () in
   let sequents_viewer = MatitaMathView.sequentsViewer_instance () in
   sequent_viewer#set_href_callback
-    (Some (fun uri -> (MatitaMathView.cicBrowser ())#load (`Uri uri)));
+    (Some (fun uri -> (MatitaMathView.cicBrowser ())#load (`Uri (UriManager.uri_of_string uri))));
   let browser_observer _ = MatitaMathView.refresh_all_browsers () in
   let sequents_observer status =
     sequents_viewer#reset;
@@ -192,7 +194,7 @@ let _ =
     let browser = MatitaMathView.cicBrowser () in
     let entry =
       try
-        `Uri Sys.argv.(1)
+        `Uri (UriManager.uri_of_string Sys.argv.(1))
       with Invalid_argument _ -> `Dir "cic:/"
     in
     browser#load entry