struct _ModestWindowMgr {
GObject parent;
- /* insert public members, if any */
};
struct _ModestWindowMgrClass {
GObjectClass parent_class;
- /* insert signal callback declarations, eg. */
- /* void (* my_event) (ModestWindowMgr* obj); */
};
+
/* member functions */
GType modest_window_mgr_get_type (void) G_GNUC_CONST;
/**
* modest_window_mgr_show_toolbars:
* @self: a #ModestWindowMgr
+ * @window_type: apply the show toolbars command only to the windows of this type
* @show_toolbar: whether or not the toolbars should be shown
* @fullscreen: TRUE/FALSE for show/hide in fullscreen mode, otherwise
* it applies to normal mode
* to fullscreen mode and viceversa
**/
void modest_window_mgr_show_toolbars (ModestWindowMgr *self,
+ GType window_type,
gboolean show_toolbars,
gboolean fullscreen);
-
+/**
+ * modest_window_mgr_get_main_window:
+ * @self: a #ModestWindowMgr
+ *
+ * get the main window, or create if it's not there. don't destroy
+ * it.
+ *
+ * Returns: the main window or NULL in case of error
+ **/
ModestWindow* modest_window_mgr_get_main_window (ModestWindowMgr *self);
+
+/**
+ * modest_window_mgr_get_easysetup_dialog:
+ * @self: a #ModestWindowMgr
+ *
+ * get the easysetup dialog; if it's NULL, there's no active dialog
+ *
+ * Returns: the easy setup dialog or NULL
+ **/
+GtkDialog* modest_window_mgr_get_easysetup_dialog (ModestWindowMgr *self);
+
+
+/**
+ * modest_window_mgr_get_easysetup_dialog:
+ * @self: a #ModestWindowMgr
+ *
+ * set the easysetup dialog; set it to NULL after destroying the dialog
+ *
+ * Returns: the easy setup dialog just set
+ **/
+GtkDialog* modest_window_mgr_set_easysetup_dialog (ModestWindowMgr *self,
+ GtkDialog *dialog);
+
+
/**
* modest_window_mgr_prevent_hibernation_while_window_is_shown:
* @self: a #ModestWindowMgr
/**
+ * modest_window_mgr_close_all_windows
+ * @self: a #ModestWindowMgr
+ *
+ * Close all registered windows.
+ **/
+void modest_window_mgr_close_all_windows (ModestWindowMgr *self);
+
+/**
* modest_window_mgr_register_header
* @self: a #ModestWindowMgr
* @header: a valid #TnyHeader