Performance improvement for icon_cell_data
[modest] / src / widgets / modest-window-mgr.h
index 1e65c49..24cbf54 100644 (file)
@@ -128,13 +128,27 @@ void           modest_window_mgr_show_toolbars         (ModestWindowMgr *self,
 /**
  * modest_window_mgr_get_main_window:
  * @self: a #ModestWindowMgr
+ * @create: if TRUE, create the main window if it was not yet existing
  *
- * get the main window, or create if it's not there. don't destroy
- * it.
+ * get the main window, and depending on @create, create one if it does not exist yet
  *
- * Returns: the main window or NULL in case of error
+ * Returns: the main window or NULL in case of error, or the main-window
+ * did not yet exist
  **/
-ModestWindow*  modest_window_mgr_get_main_window       (ModestWindowMgr *self);
+ModestWindow*  modest_window_mgr_get_main_window       (ModestWindowMgr *self,
+                                                       gboolean create);
+
+
+/**
+ * modest_window_mgr_main_window_exists:
+ * @self: a #ModestWindowMgr
+ *
+ * do we have a main window?
+ *
+ * Returns: TRUE if there's a main window, FALSE otherwise
+ **/
+gboolean  modest_window_mgr_main_window_exists       (ModestWindowMgr *self);
+
 
 
 /**
@@ -175,6 +189,34 @@ void modest_window_mgr_prevent_hibernation_while_window_is_shown (ModestWindowMg
        GtkWindow *window);
 
 
+
+/**
+ * modest_window_mgr_register_help_id
+ * @self: a #ModestWindowMgr
+ * @win: some window
+ * @help_id: the help_id for this window
+ * 
+ * register a help id for a window
+ **/
+void
+modest_window_mgr_register_help_id (ModestWindowMgr *self, GtkWindow *win, const gchar* help_id);
+
+
+/**
+ * modest_window_mgr_get_help_id:
+ * @self: a #ModestWindowMgr
+ * @win: some window
+ * 
+ * get the help id for a window; if the window is the main-window and some folder is
+ * selected, it will return the proper help_id for that
+ *
+ * Returns: a help _id
+ **/
+const gchar*
+modest_window_mgr_get_help_id (ModestWindowMgr *self, GtkWindow *win);
+
+
+
 /**
  * modest_window_mgr_find_registered_header
  * @self: a #ModestWindowMgr