diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-04-21 07:06:35 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@gnome-db.org> | 2011-06-30 00:41:55 +0800 |
commit | 0be9b1f878c2f54a0c7f2f5024125813022d81b1 (patch) | |
tree | 29e3c02eb85eb6c0059d7160821f09930bbf9b44 /widgets | |
parent | 7b71f8f18c283032a9edf2f2a191e2c693cb2a61 (diff) | |
download | gsoc2013-evolution-0be9b1f878c2f54a0c7f2f5024125813022d81b1.tar.gz gsoc2013-evolution-0be9b1f878c2f54a0c7f2f5024125813022d81b1.tar.zst gsoc2013-evolution-0be9b1f878c2f54a0c7f2f5024125813022d81b1.zip |
Adapt to CamelService changes.
Diffstat (limited to 'widgets')
-rw-r--r-- | widgets/misc/e-account-combo-box.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/widgets/misc/e-account-combo-box.c b/widgets/misc/e-account-combo-box.c index 40504a0083..e8b0bee6c5 100644 --- a/widgets/misc/e-account-combo-box.c +++ b/widgets/misc/e-account-combo-box.c @@ -106,8 +106,7 @@ account_combo_box_choose_account (EAccountComboBox *combo_box) static gboolean account_combo_box_test_account (EAccount *account) { - CamelStore *store; - const gchar *url; + CamelService *service; gboolean writable = FALSE; /* Account must be enabled. */ @@ -123,12 +122,10 @@ account_combo_box_test_account (EAccount *account) return TRUE; /* Account must be writable. */ - url = e_account_get_string (account, E_ACCOUNT_SOURCE_URL); - store = CAMEL_STORE (camel_session_get_service ( - camel_session, url, CAMEL_PROVIDER_STORE, NULL)); - if (store != NULL) { + service = camel_session_get_service (camel_session, account->uid); + if (CAMEL_IS_STORE (service)) { + CamelStore *store = CAMEL_STORE (service); writable = (store->mode & CAMEL_STORE_WRITE); - g_object_unref (store); } return writable; |