X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fwidgets%2Fmodest-account-view.h;h=b354469a241ea6524123a647b05bdf98a666db9d;hp=94e314fd6f75c9eb761eb6262b1133d9b24c943a;hb=1e3f617812d78abc30ebfbe8aab43bd0e2611b97;hpb=b7ddf68065ddddb01a3fc97f9b7592610ef25efe diff --git a/src/widgets/modest-account-view.h b/src/widgets/modest-account-view.h index 94e314f..b354469 100644 --- a/src/widgets/modest-account-view.h +++ b/src/widgets/modest-account-view.h @@ -88,33 +88,54 @@ ModestAccountView* modest_account_view_new (ModestAccountMgr *account_ gchar* modest_account_view_get_selected_account (ModestAccountView *account_view); /** - * modest_account_view_set_selected_account: + * modest_account_view_get_path_account: * @account_view: a #ModestAccountView - * @account_name: The name of the account to select. + * @path: a #GtkTreePath * - * Sets the currently selected account. - **/ -void modest_account_view_select_account (ModestAccountView *account_view, - const gchar* account_name); - -/** - * modest_account_view_block_conf_updates - * @account_view: a #ModestAccountView + * Gets the name of the account pointed by @path * - * Stops the widget from updating in response to configuration key changes. - * This can be a useful optimization when making many configuration changes. + * Returns: the name of the account or NULL if no account in path **/ -void modest_account_view_block_conf_updates (ModestAccountView *account_view); +gchar * modest_account_view_get_path_account (ModestAccountView *self, GtkTreePath *path); -/** - * modest_account_view_unblock_conf_updates - * @account_view: a #ModestAccountView - * - * 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. - **/ -void modest_account_view_unblock_conf_updates (ModestAccountView *account_view); +/** + * 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