2007-05-07 Murray Cumming <murrayc@murrayc.com>
authorMurray Cumming <murrayc@murrayc.com>
Mon, 7 May 2007 13:02:04 +0000 (13:02 +0000)
committerMurray Cumming <murrayc@murrayc.com>
Mon, 7 May 2007 13:02:04 +0000 (13:02 +0000)
commit28f2206c21738a94d6a41de73abba693c7ff323d
tree7b3ca62ee9b8f637700724cf90226d5503f60dc1
parentbb1d9974f850535acaa54862cf0e9a66cc019f31
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.

pmo-trunk-r1769
ChangeLog2
src/gnome/modest-msg-edit-window.c
src/gnome/modest-msg-view-window.c
src/maemo/modest-main-window.c
src/maemo/modest-msg-edit-window.c
src/maemo/modest-msg-view-window.c
src/maemo/modest-osso-state-saving.c
src/widgets/modest-window-mgr.c
src/widgets/modest-window-mgr.h
src/widgets/modest-window.c
src/widgets/modest-window.h