diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-04-26 20:36:24 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-04-30 23:30:19 +0800 |
commit | aec33928b7b77fe64b0afdf13b5db126e7f5dfac (patch) | |
tree | 04236fce76b859c96dc977741106aa06e28aa977 /plugins/itip-formatter | |
parent | 2214b6049d9402f91567d1bea66259b29993ae9f (diff) | |
download | gsoc2013-evolution-aec33928b7b77fe64b0afdf13b5db126e7f5dfac.tar gsoc2013-evolution-aec33928b7b77fe64b0afdf13b5db126e7f5dfac.tar.gz gsoc2013-evolution-aec33928b7b77fe64b0afdf13b5db126e7f5dfac.tar.bz2 gsoc2013-evolution-aec33928b7b77fe64b0afdf13b5db126e7f5dfac.tar.lz gsoc2013-evolution-aec33928b7b77fe64b0afdf13b5db126e7f5dfac.tar.xz gsoc2013-evolution-aec33928b7b77fe64b0afdf13b5db126e7f5dfac.tar.zst gsoc2013-evolution-aec33928b7b77fe64b0afdf13b5db126e7f5dfac.zip |
Adapt to Camel API changes.
Diffstat (limited to 'plugins/itip-formatter')
-rw-r--r-- | plugins/itip-formatter/itip-formatter.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/plugins/itip-formatter/itip-formatter.c b/plugins/itip-formatter/itip-formatter.c index 5e555434ca..90f5b9ae27 100644 --- a/plugins/itip-formatter/itip-formatter.c +++ b/plugins/itip-formatter/itip-formatter.c @@ -816,6 +816,7 @@ find_server (struct _itip_puri *pitip, ECalComponent *comp) GSList *groups, *l, *sources_conflict = NULL, *all_sources = NULL; const gchar *uid; gchar *rid = NULL; + CamelStore *parent_store; CamelURL *url; gchar *uri; ESource *source = NULL, *current_source = NULL; @@ -823,8 +824,10 @@ find_server (struct _itip_puri *pitip, ECalComponent *comp) e_cal_component_get_uid (comp, &uid); rid = e_cal_component_get_recurid_as_string (comp); - url = CAMEL_SERVICE (pitip->folder->parent_store)->url; - uri = camel_url_to_string (url, CAMEL_URL_HIDE_ALL); + parent_store = camel_folder_get_parent_store (pitip->folder); + + url = CAMEL_SERVICE (parent_store)->url; + uri = camel_url_to_string (url, CAMEL_URL_HIDE_ALL); itip_view_set_buttons_sensitive (ITIP_VIEW (pitip->view), FALSE); @@ -1981,8 +1984,10 @@ view_response_cb (GtkWidget *widget, ItipViewResponse response, gpointer data) tag = camel_message_info_user_tag (mi, "recurrence-key"); camel_message_info_free (mi); if (tag) { - gint i = 0, count; + CamelStore *parent_store; GSList *list = NULL; + const gchar *full_name; + gint i = 0, count; count = camel_folder_summary_count (pitip->folder->summary); for (i = 0; i < count; i++) { @@ -2001,7 +2006,10 @@ view_response_cb (GtkWidget *widget, ItipViewResponse response, gpointer data) } camel_message_info_free (mi); } - camel_db_delete_uids (pitip->folder->parent_store->cdb_w, pitip->folder->full_name, list, NULL); + + full_name = camel_folder_get_full_name (pitip->folder); + parent_store = camel_folder_get_parent_store (pitip->folder); + camel_db_delete_uids (parent_store->cdb_w, full_name, list, NULL); g_slist_free (list); } } else { |