/**
- * modest_window_mgr_find_window_by_msguid:
+ * modest_window_mgr_find_window_by_header:
* @self: the #ModestWindowMgr
* @msgid: the message uid
*
- * Looks for a #ModestWindow that shows the message specified by the
- * message uid passed as argument
+ * Looks for a #ModestWindow that shows the message whose header is
+ * passed as argument
*
* Return value: the #ModestWindow if found, else NULL
**/
-ModestWindow* modest_window_mgr_find_window_by_msguid (ModestWindowMgr *self,
- const gchar *msguid);
+ModestWindow* modest_window_mgr_find_window_by_header (ModestWindowMgr *self,
+ TnyHeader *header);
/**
* modest_window_mgr_set_fullscreen_mode:
* until all such windows have been closed. That means, until the windows have
* been hidden - window destruction or other memory management is not relevant.
**/
-
void modest_window_mgr_prevent_hibernation_while_window_is_shown (ModestWindowMgr *self,
GtkWindow *window);
**/
gboolean modest_window_mgr_get_hibernation_is_prevented (ModestWindowMgr *self);
+/**
+ * modest_window_mgr_save_state_for_all_windows:
+ * @self: a #ModestWindowMgr
+ *
+ * Save any state for all windows. For instance, call this before allowing
+ * application hibernation.
+ **/
+void modest_window_mgr_save_state_for_all_windows (ModestWindowMgr *self);
+
G_END_DECLS
#endif /* __MODEST_WINDOW_MGR_H__ */