2007-06-08 Murray Cumming <murrayc@murrayc.com>
authorMurray Cumming <murrayc@murrayc.com>
Fri, 8 Jun 2007 12:45:59 +0000 (12:45 +0000)
committerMurray Cumming <murrayc@murrayc.com>
Fri, 8 Jun 2007 12:45:59 +0000 (12:45 +0000)
commitfd382dbc5face5a3cf26d4e9b3fa2f78b3afce4c
treee4d4aede11d602bbfb7b8d8f800e2487175d10f3
parentc1f2c3afff07724b37290ae2ad80a251f23aa80c
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
ChangeLog2
src/maemo/modest-account-view-window.c
src/modest-account-mgr-priv.h
src/modest-account-mgr.c
src/modest-account-mgr.h
src/modest-conf.c
src/modest-tny-account-store.c
src/widgets/modest-account-view.c
src/widgets/modest-account-view.h