result = FALSE;
} else {
/* The server account is in the item after the connection name: */
- GSList *list_connection = g_slist_append (list, (gpointer)connection_name);
- list_connection = g_slist_append (list_connection, (gpointer)server_account_name);
+ list = g_slist_append (list, (gpointer)connection_name);
+ list = g_slist_append (list, (gpointer)server_account_name);
/* Reset the changed list: */
- modest_conf_set_list (conf, MODEST_CONF_CONNECTION_SPECIFIC_SMTP_LIST, list_connection,
+ modest_conf_set_list (conf, MODEST_CONF_CONNECTION_SPECIFIC_SMTP_LIST, list,
MODEST_CONF_VALUE_STRING, &err);
if (err) {
g_printerr ("modest: %s: error setting list: %s.\n", __FUNCTION__, err->message);
/* The server account is in the item after the connection name: */
GSList *list_connection = g_slist_find_custom (list, connection_name, (GCompareFunc)strcmp);
if (list_connection) {
+ GSList *account_node = g_slist_next (list_connection);
/* remove both items: */
- GSList *temp = g_slist_delete_link(list_connection, list_connection);
- temp = g_slist_delete_link(temp, g_slist_next(temp));
+ list = g_slist_delete_link(list, list_connection);
+ list = g_slist_delete_link(list, account_node);
}
/* Reset the changed list: */
/** You must use modest_account_mgr_free_account_data() on the result.
*/
-ModestAccountData*
-modest_account_mgr_get_account_data (ModestAccountMgr *self, const gchar* name)
+ModestAccountData *
+modest_account_mgr_get_account_data (ModestAccountMgr *self,
+ const gchar* name)
{
ModestAccountData *data;
gchar *server_account;
void
-modest_account_mgr_set_server_account_user_fullname (ModestAccountMgr *self,
- const gchar *account_name,
- const gchar *fullname)
+modest_account_mgr_set_user_fullname (ModestAccountMgr *self,
+ const gchar *account_name,
+ const gchar *fullname)
{
modest_account_mgr_set_string (self,
account_name,
}
void
-modest_account_mgr_set_server_account_user_email (ModestAccountMgr *self,
- const gchar *account_name,
- const gchar *email)
+modest_account_mgr_set_user_email (ModestAccountMgr *self,
+ const gchar *account_name,
+ const gchar *email)
{
modest_account_mgr_set_string (self,
account_name,