2007-05-28 Murray Cumming <murrayc@murrayc.com>
authorMurray Cumming <murrayc@murrayc.com>
Mon, 28 May 2007 16:52:15 +0000 (16:52 +0000)
committerMurray Cumming <murrayc@murrayc.com>
Mon, 28 May 2007 16:52:15 +0000 (16:52 +0000)
commit11a7e8bd60ce134adc068ecedefd64faa1dd7ddf
tree5266352813d0801da5f4cb2759a431ea89715250
parentf64dfd5bc29c0da64e6da8b1c64c1c4a38c6ec5f
2007-05-28  Murray Cumming  <murrayc@murrayc.com>

* src/maemo/modest-maemo-global-settings-dialog.c:
        (current_connection):
        * src/widgets/modest-global-settings-dialog.c:
        (current_connection_default):
        Use the enum values instead of 0, 1 and -1,
        to make the code clearer.

        * src/modest-account-mgr-helpers.c:
        (modest_account_mgr_get_connection_specific_smtp): Make this code
        more robust.

        * src/modest-runtime.h:
        * src/modest-runtime.c:
        Added modest_runtime_remove_all_send_queues().
        * src/maemo/modest-main-window.c:
        (on_account_store_connecting_finished): Recreate the send queues,
        using the appropriate transport accounts for this new connection.
        Some futher adapting might be needed if the old send queues are not
        automatically stopped at this point.

        * src/modest-tny-account-store.c: (get_server_accounts):
        Create the connection-specific transport accounts, so that they can
        be found later by their ID.

        * src/modest-tny-account.h:
        * src/modest-tny-account.c:
        Added modest_tny_account_new_from_server_account_name().
        modest_tny_account_new_from_server_account(): Do not create the
        send queues here, because they will be
        recreated anyway when the connection changes for the first time.

pmo-trunk-r1982
ChangeLog2
src/maemo/modest-maemo-global-settings-dialog.c
src/maemo/modest-main-window.c
src/modest-account-mgr-helpers.c
src/modest-runtime.c
src/modest-runtime.h
src/modest-tny-account-store.c
src/modest-tny-account.c
src/modest-tny-account.h
src/widgets/modest-global-settings-dialog.c