2007-07-03 Murray Cumming <murrayc@murrayc.com>
authorMurray Cumming <murrayc@murrayc.com>
Tue, 3 Jul 2007 11:39:52 +0000 (11:39 +0000)
committerMurray Cumming <murrayc@murrayc.com>
Tue, 3 Jul 2007 11:39:52 +0000 (11:39 +0000)
commitfd5b6103aab069d4b12e04a5e3205f13a4f91042
tree963ca9ee06fdac473024cb606d99e78b87f82219
parent4e81b041a2cf0ac46b8cbc585b5bbf4bda750d49
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
ChangeLog2
src/modest-tny-account.c