X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fwidgets%2Fmodest-account-view.h;h=a9f3f514d5487843c5aa501b4b1b0e23e7724f08;hb=8dcd00d8d346ce778c7e6026a208b574a1f9d1b1;hp=aa16dd2d9958f2e8e26f11fd095675a6350353ae;hpb=fc9e22262b3ec375140b1cdf954b4660f03b9e36;p=modest diff --git a/src/widgets/modest-account-view.h b/src/widgets/modest-account-view.h index aa16dd2..a9f3f51 100644 --- a/src/widgets/modest-account-view.h +++ b/src/widgets/modest-account-view.h @@ -31,7 +31,7 @@ #define __MODEST_ACCOUNT_VIEW_H__ #include "modest-account-mgr.h" -#include +#include G_BEGIN_DECLS @@ -87,6 +87,56 @@ ModestAccountView* modest_account_view_new (ModestAccountMgr *account_ **/ gchar* modest_account_view_get_selected_account (ModestAccountView *account_view); +/** + * modest_account_view_get_path_account: + * @account_view: a #ModestAccountView + * @path: a #GtkTreePath + * + * Gets the name of the account pointed by @path + * + * Returns: the name of the account or NULL if no account in path + **/ +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); + +/** + * modest_account_view_set_show_last_update: + * @self: a #ModestAccountView + * @show: a #gboolean + * + * show/hide the last update column + */ +void modest_account_view_set_show_last_update (ModestAccountView *self, gboolean show); + +/** + * modest_account_view_get_show_last_update: + * @self: a #ModestAccountView + * + * tell if it's showing the last update column + * + * Returns: a #gboolean + */ +gboolean modest_account_view_get_show_last_update (ModestAccountView *self); + G_END_DECLS #endif /* __MODEST_ACCOUNT_VIEW_H__ */