2007-07-03 Murray Cumming <murrayc@murrayc.com>
* src/modest-tny-account.c:
(modest_tny_account_get_special_folder): (util_on_idle),
Handle the GError so we can see when tny_folder_store_get_folders()
fails, as it currently does while something else is connecting.
Added util_run_in_main_thread_and_wait()
which uses an idlen handler and mainloop to ensure that the function
is called in the main thread.
(on_connection_status_changed): Use util_run_in_main_thread_and_wait()
to make sure that we call attempt the connection in the mainloop only,
which might solve some hangs.
pmo-trunk-r2548