]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/matita/matitaMathView.ml
VERY EXPERIMENTAL:
[helm.git] / matita / matita / matitaMathView.ml
index e00e4fdc5107995bce576f8c0f030c6d524c5821..e42f63ae22945f2c9e2dcd9c4033aa533478838b 100644 (file)
@@ -680,12 +680,16 @@ let default_cicMathView () =
 let cicMathView_instance =
  MatitaMisc.singleton default_cicMathView
 
-let default_sequentsViewer () =
-  let gui = MatitaMisc.get_gui () in
+let default_sequentsViewer notebook =
   let cicMathView = cicMathView_instance () in
-  sequentsViewer ~notebook:gui#main#sequentsNotebook ~cicMathView ()
-let sequentsViewer_instance = MatitaMisc.singleton default_sequentsViewer
-
+  sequentsViewer ~notebook ~cicMathView ()
+let sequentsViewer_instance =
+ let already_used = ref false in
+  fun notebook ->
+   if !already_used then assert false
+   else
+    (already_used := true;
+     default_sequentsViewer notebook)
           
 (** @param reuse if set reused last opened cic browser otherwise 
 *  opens a new one. default is false *)