2007-06-08 Murray Cumming <murrayc@murrayc.com>
* src/modest-account-mgr-priv.h: Added a timeout id and a GSList of
keys changed in the last X seconds.
* src/modest-account-mgr.h:
* src/modest-account-mgr.c: (on_timeout_notify_changes),
(on_key_change), (modest_account_mgr_class_init),
(modest_account_mgr_init), (modest_account_mgr_finalize):
As the keys are changed, save them in a GSList* and signal that GSList*
further every X seconds, to batch changes, to allow us to do just one
update per batch. This should fix bug projects.maemo.org bug NB#56472 and
bug NB#56941 and other (UI-blocking) delays when changing account settings.
* src/modest-tny-account-store.c: (on_account_changed): Adapted to
changed signal signature.
* src/modest-conf.c: (modest_conf_set_list),
(modest_conf_on_change): Reenable notification.
(modest_conf_maemo_fake_on_change): Comment out the hack that
notified immediately instead of asynchronously.
* src/widgets/modest-account-view.h:
* src/widgets/modest-account-view.c:
(update_account_view): Select the previously-selected account ID,
if possible. This fixes projects.maemo.org bug NB#56933.
(on_account_changed), (on_account_removed),
(modest_account_view_select_account):
Remove the block/unblock functions
because they were not useful.
* src/maemo/modest-account-view-window.c:
(on_delete_button_clicked), (on_edit_button_clicked),
(on_new_button_clicked): Remove the use of the non-working block/unblock.
pmo-trunk-r2130