connect_button tbar#assumptionButton (tac (A.Assumption loc));
connect_button tbar#cutButton (tac_w_term (A.Cut (loc, hole)));
connect_button tbar#autoButton (tac (A.Auto (loc,None)));
+ ignore(self#main#tacticsBarMenuItem#connect#toggled
+ ~callback:(fun _ ->
+ if self#main#tacticsBarMenuItem#active then
+ self#main#tacticsButtonsHandlebox#misc#show ()
+ else
+ self#main#tacticsButtonsHandlebox#misc#hide ()));
+ let module Hr = Helm_registry in
+ if not(Hr.get_opt_default Hr.get_bool false "matita.tactics_bar") then
+ self#main#tacticsBarMenuItem#set_active false;
(* quit *)
self#setQuitCallback (fun () -> exit 0);
(* log *)
let height = Gdk.Screen.height () in
let main_w = width * 90 / 100 in
let main_h = height * 80 / 100 in
- let script_w = main_w / 2 in
+ let script_w = main_w * 6 / 10 in
self#main#toplevel#resize ~width:main_w ~height:main_h;
self#main#hpaneScriptSequent#set_position script_w