* Removed the password_selected signal
[modest] / src / modest-widget-factory.c
index 41b5453..cfac9b9 100644 (file)
 #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"
 
@@ -166,8 +169,7 @@ init_widgets (ModestWidgetFactory *self)
 
        /* 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;
        }
@@ -247,9 +249,8 @@ modest_widget_factory_get_account_view (ModestWidgetFactory *self)
        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);
 }
 
@@ -282,8 +283,9 @@ get_transports (ModestWidgetFactory *self)
        
        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;