#include "modest-widget-memory.h"
#include <modest-protocol-info.h>
#include "modest-tny-platform-factory.h"
-#include "modest-account-mgr.h"
+
+#include <modest-account-mgr.h>
+#include <modest-account-mgr-helpers.h>
+
#include "modest-mail-operation.h"
#include "widgets/modest-header-view-priv.h"
/* header view */
if (!(priv->header_view =
- MODEST_HEADER_VIEW(modest_header_view_new
- (NULL, NULL,0)))) {
+ MODEST_HEADER_VIEW(modest_header_view_new (NULL,MODEST_HEADER_VIEW_STYLE_DETAILS)))) {
g_printerr ("modest: cannot instantiate header view\n");
return FALSE;
}
g_return_val_if_fail (self, NULL);
priv = MODEST_WIDGET_FACTORY_GET_PRIVATE(self);
- account_mgr =
- modest_tny_platform_factory_get_modest_account_mgr_instance (priv->fact);
-
+ account_mgr = modest_tny_platform_factory_get_account_mgr_instance
+ (MODEST_TNY_PLATFORM_FACTORY(priv->fact));
return modest_account_view_new (account_mgr);
}
priv = MODEST_WIDGET_FACTORY_GET_PRIVATE(self);
- account_mgr =
- modest_tny_platform_factory_get_modest_account_mgr_instance (priv->fact);
+ account_mgr =
+ modest_tny_platform_factory_get_account_mgr_instance
+ (MODEST_TNY_PLATFORM_FACTORY(priv->fact));
cursor = accounts = modest_account_mgr_account_names (account_mgr, NULL);
while (cursor) {
ModestAccountData *data;