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 /mail/em-subscription-editor.c | |
parent | 7b71f8f18c283032a9edf2f2a191e2c693cb2a61 (diff) | |
download | gsoc2013-evolution-0be9b1f878c2f54a0c7f2f5024125813022d81b1.tar gsoc2013-evolution-0be9b1f878c2f54a0c7f2f5024125813022d81b1.tar.gz gsoc2013-evolution-0be9b1f878c2f54a0c7f2f5024125813022d81b1.tar.bz2 gsoc2013-evolution-0be9b1f878c2f54a0c7f2f5024125813022d81b1.tar.lz gsoc2013-evolution-0be9b1f878c2f54a0c7f2f5024125813022d81b1.tar.xz gsoc2013-evolution-0be9b1f878c2f54a0c7f2f5024125813022d81b1.tar.zst gsoc2013-evolution-0be9b1f878c2f54a0c7f2f5024125813022d81b1.zip |
Adapt to CamelService changes.
Diffstat (limited to 'mail/em-subscription-editor.c')
-rw-r--r-- | mail/em-subscription-editor.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/mail/em-subscription-editor.c b/mail/em-subscription-editor.c index 99aa6f5247..368abcbe50 100644 --- a/mail/em-subscription-editor.c +++ b/mail/em-subscription-editor.c @@ -794,7 +794,7 @@ subscription_editor_add_account (EMSubscriptionEditor *editor, EAccount *account) { StoreData *data; - CamelStore *store; + CamelService *service; CamelSession *session; GtkListStore *list_store; GtkTreeStore *tree_store; @@ -804,16 +804,14 @@ subscription_editor_add_account (EMSubscriptionEditor *editor, GtkComboBoxText *combo_box; GtkWidget *container; GtkWidget *widget; - const gchar *url; combo_box = GTK_COMBO_BOX_TEXT (editor->priv->combo_box); gtk_combo_box_text_append_text (combo_box, account->name); session = em_subscription_editor_get_session (editor); - url = e_account_get_string (account, E_ACCOUNT_SOURCE_URL); + service = camel_session_get_service (session, account->uid); - store = (CamelStore *) camel_session_get_service ( - session, url, CAMEL_PROVIDER_STORE, NULL); + g_return_if_fail (CAMEL_IS_STORE (service)); tree_store = gtk_tree_store_new ( N_COLUMNS, @@ -891,7 +889,7 @@ subscription_editor_add_account (EMSubscriptionEditor *editor, data = g_slice_new0 (StoreData); data->account = g_object_ref (account); - data->store = g_object_ref (store); + data->store = g_object_ref (service); data->tree_view = g_object_ref (widget); data->list_store = GTK_TREE_MODEL (list_store); data->tree_store = GTK_TREE_MODEL (tree_store); |