X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fmatita%2FmatitaGui.ml;h=19251f0744b4467e32f403a38b7b747986959f83;hb=774c8d18f41e71ae7e26a90d726d10a6f95de1fe;hp=840d057c2bd897334befce94b52994e7bba173c0;hpb=d18bffef7df9bbfc5ceae7ac7b607c96611e1978;p=helm.git diff --git a/helm/software/matita/matitaGui.ml b/helm/software/matita/matitaGui.ml index 840d057c2..19251f074 100644 --- a/helm/software/matita/matitaGui.ml +++ b/helm/software/matita/matitaGui.ml @@ -422,7 +422,9 @@ class gui () = main#buttonsToolbar#misc#set_sensitive true; develList#buttonsHbox#misc#set_sensitive true; main#scriptMenu#misc#set_sensitive true; - source_view#set_editable true + source_view#set_editable true; + (*The next line seems sufficient to avoid some unknown race condition *) + GtkThread.sync (fun () -> ()) () in let worker_thread = ref None in let notify_exn exn =