Replace all idle handlers waiting for draw and all manual runs of the event loop with a call to gtk_tree_view_wait_for_draw().