+2007-05-07 Murray Cumming <murrayc@murrayc.com>
+
+ * src/maemo/modest-platform.c:
+ (modest_platform_set_update_interval): Use the ALARM_EVENT_NO_DIALOG
+ flag (awful lack of namespacing in this API) to prevent a useless %s dialog
+ from being shown.
+
+2007-05-07 Murray Cumming <murrayc@murrayc.com>
+
+ * src/widgets/modest-window.h:
+ * src/widgets/modest-window.c: Added a save_state_func vfunc,
+ and modest_window_save_state(), which invokes it.
+
+ * src/widgets/modest-window-mgr.h:
+ * src/widgets/modest-window-mgr.c:
+ Added modest_window_mgr_save_state_for_all_windows(), which calls
+ the save_state vfunc on all registered windows, if implemented.
+
+ * src/gnome/modest-msg-edit-window.c:
+ * src/gnome/modest-msg-view-window.c:
+ * src/maemo/modest-msg-edit-window.c:
+ * src/maemo/modest-msg-view-window.c:
+ * src/maemo/modest-main-window.c:
+ Specify the existing save_settings functions as implementations of
+ ModestWindow::save_state_func().
+
+ * src/maemo/modest-osso-state-saving.c: modest_osso_save_state():
+ Call modest_window_mgr_save_state_for_all_windows(). This happens before
+ enabling hibernation, for instance.
+
+ We may need to do the same thing for restoring settings.
+
+
+2007-05-07 Murray Cumming <murrayc@murrayc.com>
+
+ * src/widgets/modest-window-mgr.c:
+ * src/widgets/modest-window-mgr.h:
+ Added modest_window_mgr_prevent_hibernation_while_window_is_shown() and
+ modest_window_mgr_get_hibernation_is_prevented().
+
+ * src/maemo/modest-main-window.c:
+ (on_hildon_program_is_topmost_notify): Prevent hibernation
+ (possible when the application goes to the background in the WM),
+ if modest_window_mgr_get_hibernation_is_prevented() is TRUE.
+
+ * src/maemo/easysetup/modest-easysetup-wizard.c:
+ (modest_easysetup_wizard_dialog_init):
+ * src/maemo/modest-account-settings-dialog.c:
+ (modest_account_settings_dialog_init):
+ * src/maemo/modest-connection-specific-smtp-edit-window.c:
+ (modest_connection_specific_smtp_edit_window_init):
+ * src/maemo/modest-connection-specific-smtp-window.c:
+ (modest_connection_specific_smtp_window_init):
+ * src/maemo/modest-signature-editor-dialog.c:
+ (modest_signature_editor_dialog_init):
+ Call modest_window_mgr_prevent_hibernation_while_window_is_shown() to
+ prevent hibernation while any of these account settings dialogs are open.
+
+2007-05-04 Murray Cumming <murrayc@murrayc.com>
+
+ * src/maemo/Makefile.am:
+ * src/maemo/modest-osso-state-saving.c:
+ * src/maemo/modest-osso-state-saving.h: Added
+ modest_osso_load_state() and modest_osso_save_state() though they do
+ nothing now. They should iterate through all the open windows and load/save
+ their state.
+ * src/modest-ui-actions.c: (modest_ui_actions_on_quit): For Mameo,
+ save state when closing.
+
+ * src/maemo/modest-main-window.c:
+ (on_hildon_program_is_topmost_notify), (modest_main_window_new):
+ Add a notification handler for the HildonProgram::is-topmost property,
+ so we can allow hibernation when the application goes into the background.
+ But we still need to detect when the accounts setup windows are open so
+ we can stop hibernation when they are open.
+ To do this, I also added the main window the HildonProgram. This might have
+ other side-effects/benefits, and should maybe be done for other windows.
+
+ * src/maemo/modest-osso-autosave-callbacks.h:
+ * src/maemo/modest-osso-autosave-callbacks.c:
+ (modest_on_osso_application_autosave): Add a libosso auto-save callback,
+ though it does not do anything yet, and we might never need this to do
+ anything. For instance, we already save drafts.
+
+ * src/maemo/modest-platform.c: (modest_platform_init):
+ Specify the libosso auto-save callback.
+
2007-05-03 Murray Cumming <murrayc@murrayc.com>
* src/maemo/modest-platform.c: