And while webui is waiting for a result, no gtk event loop is processed and thus the application freezes. I've solved this by using only webui_run and providing results of the function asynchronously. See this last [commit on webui-wire](https://github.com/hdijkema/webui-wire/commit/1bd701934d2a39728e7b1dc85e83ac6d0ba0ea7c).