X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fmatita%2FmatitaGui.ml;h=2018d7176210f8b4cbc9b2bfbf40aa903436610b;hb=5325734bc2e4927ed7ec146e35a6f0f2b49f50c1;hp=6ad3e81e0c015e57c1ff40e83a6c283a0c14c904;hpb=481992ea591bf53cba758a96e7d42e9cdce7e129;p=helm.git diff --git a/helm/matita/matitaGui.ml b/helm/matita/matitaGui.ml index 6ad3e81e0..2018d7176 100644 --- a/helm/matita/matitaGui.ml +++ b/helm/matita/matitaGui.ml @@ -55,11 +55,6 @@ class gui file = [ toolbar#toolBarEventBox; proof#proofWinEventBox ] in let console = MatitaConsole.console ~packing:main#scrolledConsole#add () in - let _ = - console#echo_message "message"; - console#echo_error "error"; - console#echo_prompt () - in object (self) initializer (* glade's check widgets *) @@ -84,14 +79,17 @@ class gui file = List.iter (fun w -> w#misc#set_sensitive false) [ main#saveMenuItem; main#saveAsMenuItem ]; main#helpMenu#set_right_justified true; - (* uri choice *) - () + (* console *) + console#echo_message "\tMatita version 0.0.1\n"; + console#echo_prompt (); + console#misc#grab_focus () - method toolbar = toolbar - method main = main method about = about + method console = console method fileSel = fileSel + method main = main method proof = proof + method toolbar = toolbar method newUriDialog () = let dialog = new uriChoiceDialog ~file () in @@ -122,5 +120,7 @@ class gui file = ignore (main#quitMenuItem#connect#activate callback); self#addKeyBinding GdkKeysyms._q callback + method setPhraseCallback = console#set_callback + end