Fixes FwNULL 14/16
[modest] / src / widgets / modest-account-view.h
index ba5992c..31a7674 100644 (file)
@@ -87,24 +87,36 @@ ModestAccountView*   modest_account_view_new         (ModestAccountMgr *account_
  **/
 gchar*   modest_account_view_get_selected_account    (ModestAccountView *account_view);
 
-/** 
- * modest_account_view_block_conf_updates
+/**
+ * modest_account_view_get_path_account:
  * @account_view: a #ModestAccountView
+ * @path: a #GtkTreePath
  * 
- * Stops the widget from updating in response to configuration key changes.
- * This can be a useful optimization when making many configuration changes.
- **/
-void modest_account_view_block_conf_updates    (ModestAccountView *account_view);
-
-/** 
- * modest_account_view_unblock_conf_updates
- * @account_view: a #ModestAccountView
+ * Gets the name of the account pointed by @path
  * 
- * Allows the widget tp update again in response to configuration key changes.
- * When this is called it will cause the widget to immediately update its view from the 
- * configuration data.
+ * Returns: the name of the account or NULL if no account in path
  **/
-void modest_account_view_unblock_conf_updates    (ModestAccountView *account_view);
+gchar *  modest_account_view_get_path_account (ModestAccountView *self, GtkTreePath *path);
+
+/**
+ * modest_account_view_set_picker_mode:
+ * @self: a #ModestAccountView
+ * @enable: a #gboolean
+ *
+ * Sets the account view to be shown in picker mode (only names shown, centered).
+ * This is used in Hildon2.2 to show accounts as in a picker
+ */
+void modest_account_view_set_picker_mode (ModestAccountView *self, gboolean enable);
+
+/**
+ * modest_account_view_get_picker_mode:
+ * @self: a #ModestAccountView
+ *
+ * Gets if account view is in picker mode.
+ *
+ * Returns: %TRUE if @self in picker mode, %FALSE otherwise
+ */
+gboolean modest_account_view_get_picker_mode (ModestAccountView *self);
 
 G_END_DECLS