* The "account-changed" signal is now properly managed in the ModestTnyAccountStore...
[modest] / src / maemo / easysetup / modest-easysetup-wizard.c
index 1c462d5..21165b5 100644 (file)
@@ -1860,21 +1860,17 @@ create_account (ModestEasysetupWizardDialog *self, gboolean enabled)
                
        /* The user name and email address must be set additionally: */
        const gchar* user_name = gtk_entry_get_text (GTK_ENTRY (self->entry_user_name));
-       modest_account_mgr_set_string (self->account_manager, account_name,
-                                      MODEST_ACCOUNT_FULLNAME, user_name, FALSE /* not server account */);
+       modest_account_mgr_set_server_account_user_fullname (self->account_manager, account_name, user_name);
 
        const gchar* emailaddress = gtk_entry_get_text (GTK_ENTRY (self->entry_user_email));
-       modest_account_mgr_set_string (self->account_manager, account_name,
-                                      MODEST_ACCOUNT_EMAIL, emailaddress, FALSE /* not server account */);
+       modest_account_mgr_set_server_account_user_email (self->account_manager, account_name, emailaddress); 
 
        /* Set the display name: */
-       modest_account_mgr_set_string (self->account_manager, account_name,
-                                      MODEST_ACCOUNT_DISPLAY_NAME, display_name, FALSE /* not server account */);
+       modest_account_mgr_set_display_name (self->account_manager, account_name, display_name);
 
        /* Set retrieve type */ 
        const gchar *retrieve = MODEST_ACCOUNT_RETRIEVE_VALUE_HEADERS_ONLY;
-       modest_account_mgr_set_string (self->account_manager, account_name,
-               MODEST_ACCOUNT_RETRIEVE, retrieve, FALSE /* not server account */);
+       modest_account_mgr_set_retrieve_type (self->account_manager, account_name, retrieve);
 
        /* Save the connection-specific SMTP server accounts. */
         modest_account_mgr_set_use_connection_specific_smtp(self->account_manager, account_name,