[evolution-exchange] Adapt to Evolution API changes.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-exchange] Adapt to Evolution API changes.
- Date: Sun, 11 Dec 2011 03:04:52 +0000 (UTC)
commit c5ab9efe3a23cda5b51ec7fb7984de3e642617c9
Author: Matthew Barnes <mbarnes redhat com>
Date: Sat Dec 10 22:04:33 2011 -0500
Adapt to Evolution API changes.
eplugin/exchange-delegates-user.c | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
---
diff --git a/eplugin/exchange-delegates-user.c b/eplugin/exchange-delegates-user.c
index 6593609..ec52c35 100644
--- a/eplugin/exchange-delegates-user.c
+++ b/eplugin/exchange-delegates-user.c
@@ -216,6 +216,10 @@ exchange_delegates_user_edit (ExchangeAccount *account,
ExchangeDelegatesUser *user,
GtkWidget *parent_window)
{
+ EShell *shell;
+ EShellBackend *shell_backend;
+ EMailBackend *backend;
+ EMailSession *session;
gchar *title;
gint button, i;
E2kPermissionsRole role;
@@ -240,6 +244,12 @@ exchange_delegates_user_edit (ExchangeAccount *account,
g_return_val_if_fail (EXCHANGE_IS_DELEGATES_USER (user), FALSE);
g_return_val_if_fail (E2K_IS_SID (user->sid), FALSE);
+ shell = e_shell_get_default ();
+ shell_backend = e_shell_get_backend_by_name (shell, "mail");
+
+ backend = E_MAIL_BACKEND (shell_backend);
+ session = e_mail_backend_get_session (backend);
+
delegate_permissions = gtk_dialog_new_with_buttons (
/* Translators: "Delegate Permissions" refers to the permissions on the delegator's folders
* that the delegatee would receive */
@@ -560,7 +570,8 @@ exchange_delegates_user_edit (ExchangeAccount *account,
}
/* Send the permissions summarizing mail */
- out_folder = e_mail_local_get_folder (E_MAIL_LOCAL_FOLDER_OUTBOX);
+ out_folder = e_mail_session_get_local_folder (
+ session, E_MAIL_LOCAL_FOLDER_OUTBOX);
info = camel_message_info_new (NULL);
camel_message_info_set_flags (info, CAMEL_MESSAGE_SEEN, CAMEL_MESSAGE_SEEN);
e_mail_folder_append_message (out_folder, delegate_mail, info, 0, NULL, em_utils_delegates_done, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]