Fix for bug NB#83343
authorJose Dapena Paz <jdapena@igalia.com>
Mon, 26 May 2008 16:29:18 +0000 (16:29 +0000)
committerJose Dapena Paz <jdapena@igalia.com>
Mon, 26 May 2008 16:29:18 +0000 (16:29 +0000)
commit8dd50ff5e07c449e6cdca0abfd868826673fcba5
tree42fce5d982e2bf8c91bd5f869c4f488be2862b22
parent1c6afd9aebb7e813d0a24c707eaf66a4ddf7e2b6
Fix for bug NB#83343
* src/modest-mail-operation-queue.[ch]:
        * Add the special handling for shutdown sync mail operation.
          This operation should be requested everytime we decide that
          modest should be finished (mail operation queue is empty, and
          no windows displayed). If queue exhaust again, and the last
          operation finished was that shutdown sync, then we can close
          modest safely. This way we don't have to sync on shutdown
          process itself.
* src/modest-main.c:
        * On (on_idle_exit_modest) handler implement checking for last
          operation. If last operation was the shutdown sync then we
          close silently. If not then we have to run the operation.
* src/modest-init.c:
        * Move to the last shutdown step the gnome vfs shutdown.
* src/modest-mail-operation.[ch]:
        * Add shutdown mail operation. This simply syncs all accounts
* src/modest-tny-account-store.[ch]:
        * New async method that shutdowns all accounts in a store.
        * Now the finalize of the account store does not shutdown the
          accounts as this step should have happened before.

pmo-trunk-r4572
src/modest-init.c
src/modest-mail-operation-queue.c
src/modest-mail-operation-queue.h
src/modest-mail-operation.c
src/modest-mail-operation.h
src/modest-main.c
src/modest-tny-account-store.c
src/modest-tny-account-store.h