X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fwidgets%2Fmodest-window-mgr.h;h=88494ed9c0298b248a8d97919689e5cf503a0b2e;hb=a50c6cbc782dbb0f9cbae5d903ca868dd9139b0c;hp=6e7fa12e0f9ede8b29fff870aa7ba8b77a20e675;hpb=8ef67be83b1b65ad112585d7e1ecefd8beb46b69;p=modest diff --git a/src/widgets/modest-window-mgr.h b/src/widgets/modest-window-mgr.h index 6e7fa12..88494ed 100644 --- a/src/widgets/modest-window-mgr.h +++ b/src/widgets/modest-window-mgr.h @@ -32,6 +32,7 @@ #include #include "modest-window.h" +#include G_BEGIN_DECLS @@ -66,8 +67,10 @@ struct _ModestWindowMgrClass { GType window_type, gboolean show_toolbars, gboolean fullscreen); +#ifndef MODEST_TOOLKIT_HILDON2 ModestWindow * (*get_main_window) (ModestWindowMgr *self, gboolean show); +#endif gboolean (*close_all_windows) (ModestWindowMgr *self); GtkWindow * (*get_modal) (ModestWindowMgr *self); void (*set_modal) (ModestWindowMgr *self, @@ -82,8 +85,13 @@ struct _ModestWindowMgrClass { GList * (*get_window_list) (ModestWindowMgr *self); ModestWindow * (*show_initial_window) (ModestWindowMgr *self); ModestWindow * (*get_current_top) (ModestWindowMgr *self); + gboolean (*close_all_but_initial) (ModestWindowMgr *self); + gboolean (*screen_is_on) (ModestWindowMgr *self); void (*create_caches) (ModestWindowMgr *self); + + ModestWindow * (*get_folder_window) (ModestWindowMgr *self); + /* Signals */ void (*window_list_empty) (ModestWindowMgr *self); void (*progress_list_changed) (ModestWindowMgr *self); @@ -175,6 +183,7 @@ void modest_window_mgr_show_toolbars (ModestWindowMgr *self, GType window_type, gboolean show_toolbars, gboolean fullscreen); +#ifndef MODEST_TOOLKIT_HILDON2 /** * modest_window_mgr_get_main_window: * @self: a #ModestWindowMgr @@ -205,8 +214,7 @@ void modest_window_mgr_set_main_window (ModestWindowMgr *self, ModestWindow *mai * Returns: TRUE if there's a main window, FALSE otherwise **/ gboolean modest_window_mgr_main_window_exists (ModestWindowMgr *self); - - +#endif /** * modest_window_mgr_get_modal: @@ -474,6 +482,21 @@ gboolean modest_window_mgr_has_progress_operation_on_account (ModestWindowMgr *s */ void modest_window_mgr_create_caches (ModestWindowMgr *self); +/** + * modest_window_mgr_close_all_but_initial: + * @self: a #ModestWindowMgr + * + * closes all but the initial window. + * + * Returns: %TRUE if the initial window is returned in @initial_window + * and it does not have any other dialog or window on top, otherwhise + * %FALSE + */ +gboolean modest_window_mgr_close_all_but_initial (ModestWindowMgr *self); + +ModestWindow *modest_window_mgr_get_folder_window (ModestWindowMgr *self); + + G_END_DECLS #endif /* __MODEST_WINDOW_MGR_H__ */