By putting the g_file_set_contents() into the worker thread. The main thread 
can wait for that to finish but in the meantime it can handle some other 
events. I see that it's difficult to block out UI actions that conflict with 
the saving. Your suggested modal dialog can work, however if some save options 
are not cancellable I'm not sure it buys us anything (besides presenting a 
dialog that tell the user why Geany is locked up)

---
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/828#issuecomment-167077302

Reply via email to