2007-05-04 Murray Cumming <murrayc@murrayc.com>
authorMurray Cumming <murrayc@murrayc.com>
Fri, 4 May 2007 16:08:41 +0000 (16:08 +0000)
committerMurray Cumming <murrayc@murrayc.com>
Fri, 4 May 2007 16:08:41 +0000 (16:08 +0000)
commit0f867d147ccfb5326b9d4331dc54586591071c60
treebafe9beb81b219a5a6cc46ed0e9279648993e9a2
parenta5426ee60e3bc5a1eef0e03ad9192818ef2a487b
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.

pmo-trunk-r1760
ChangeLog2
src/maemo/Makefile.am
src/maemo/modest-main-window.c
src/maemo/modest-osso-autosave-callbacks.c [new file with mode: 0644]
src/maemo/modest-osso-autosave-callbacks.h [new file with mode: 0644]
src/maemo/modest-osso-state-saving.c [new file with mode: 0644]
src/maemo/modest-osso-state-saving.h [new file with mode: 0644]
src/maemo/modest-platform.c
src/modest-ui-actions.c
src/widgets/modest-window-mgr.h