It could be fixed by removing any run() call and just starting with show_all() instead.
You'd most problably also have to change the focus_out handler, here it only worked properly without the checks for toplevel type, so just a plain destroy() without the checks, which should be fine in most cases, in others it might not be good.
It could be fixed by removing any run() call and just starting with show_all() instead.
You'd most problably also have to change the focus_out handler, here it only worked properly without the checks for toplevel type, so just a plain destroy() without the checks, which should be fine in most cases, in others it might not be good.