X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-account-mgr-helpers.c;h=73362c49c1f9043121aff419bac9f2bc1a4a6e73;hp=2bd6b3e94c3948c8e8cb2ef23c70c68ad2f3a564;hb=fcbc6a6dfa1a10921d2ca889256a21b192adbe98;hpb=01db4e94dcf1e9818000eb08c90bc3b09c3a5071 diff --git a/src/modest-account-mgr-helpers.c b/src/modest-account-mgr-helpers.c index 2bd6b3e..73362c4 100644 --- a/src/modest-account-mgr-helpers.c +++ b/src/modest-account-mgr-helpers.c @@ -160,18 +160,17 @@ gboolean modest_account_mgr_remove_connection_specific_smtp (ModestAccountMgr *s return TRUE; } -gboolean modest_account_mgr_get_has_connection_specific_smtp (ModestAccountMgr *self, const gchar* account_name) +gboolean modest_account_mgr_get_use_connection_specific_smtp (ModestAccountMgr *self, const gchar* account_name) { - GSList *list = modest_account_mgr_get_list (self, account_name, - MODEST_ACCOUNT_CONNECTION_SPECIFIC_SMTP_LIST, - MODEST_CONF_VALUE_STRING, FALSE); - if (!list) - return FALSE; - - /* TODO: Should we free the items too, or just the list? */ - g_slist_free (list); - - return TRUE; + return modest_account_mgr_get_bool (self, account_name, + MODEST_ACCOUNT_USE_CONNECTION_SPECIFIC_SMTP, FALSE); +} + +gboolean modest_account_mgr_set_use_connection_specific_smtp (ModestAccountMgr *self, const gchar* account_name, + gboolean new_value) +{ + return modest_account_mgr_set_bool (self, account_name, MODEST_ACCOUNT_USE_CONNECTION_SPECIFIC_SMTP, + new_value, FALSE); } /**