[evolution-groupwise] Adapt to Evolution API changes.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-groupwise] Adapt to Evolution API changes.
- Date: Fri, 16 Dec 2011 16:41:14 +0000 (UTC)
commit 18806373079049c3f8b857432b0fc5b9909da829
Author: Matthew Barnes <mbarnes redhat com>
Date: Fri Dec 16 11:29:00 2011 -0500
Adapt to Evolution API changes.
src/plugins/install-shared.c | 7 +------
src/plugins/share-folder-common.c | 10 ++++------
2 files changed, 5 insertions(+), 12 deletions(-)
---
diff --git a/src/plugins/install-shared.c b/src/plugins/install-shared.c
index 713f0bd..fba2d70 100644
--- a/src/plugins/install-shared.c
+++ b/src/plugins/install-shared.c
@@ -178,24 +178,19 @@ static void
apply_clicked (GtkAssistant *assistant,
CamelMimeMessage *msg)
{
- EShell *shell;
- EShellBackend *shell_backend;
EMFolderSelector *selector;
EMFolderTree *folder_tree;
GtkWidget *dialog;
struct AcceptData *accept_data;
gpointer parent;
- shell = e_shell_get_default ();
- shell_backend = e_shell_get_backend_by_name (shell, "mail");
-
parent = gtk_widget_get_toplevel (GTK_WIDGET (assistant));
parent = gtk_widget_is_toplevel (parent) ? parent : NULL;
accept_data = g_new0 (struct AcceptData, 1);
dialog = em_folder_selector_create_new (
- parent, E_MAIL_BACKEND (shell_backend), em_folder_tree_model_get_default (), 0,
+ parent, em_folder_tree_model_get_default (), 0,
_("Create folder"), _("Specify where to create the folder:"));
selector = EM_FOLDER_SELECTOR (dialog);
diff --git a/src/plugins/share-folder-common.c b/src/plugins/share-folder-common.c
index d3e9f35..dcc719e 100644
--- a/src/plugins/share-folder-common.c
+++ b/src/plugins/share-folder-common.c
@@ -262,7 +262,7 @@ users_dialog_response (GtkWidget *dialog,
struct _EMFolderTreeModelStoreInfo *si;
EMFolderSelector *emfs = ssi->emfs;
EMFolderTree *folder_tree;
- EMailBackend *mail_backend;
+ EMailSession *session;
CamelStore *store;
gchar *folder_name;
@@ -273,7 +273,7 @@ users_dialog_response (GtkWidget *dialog,
}
folder_tree = em_folder_selector_get_folder_tree (emfs);
- mail_backend = em_folder_tree_get_backend (folder_tree);
+ session = em_folder_tree_get_session (folder_tree);
if (!em_folder_tree_get_selected (folder_tree, &store, &folder_name))
g_return_if_reached ();
@@ -287,7 +287,7 @@ users_dialog_response (GtkWidget *dialog,
if (CAMEL_IS_VEE_STORE (store)) {
EFilterRule *rule;
- rule = em_vfolder_rule_new (mail_backend);
+ rule = em_vfolder_rule_new (session);
e_filter_rule_set_name (rule, folder_name);
vfolder_gui_add_rule (EM_VFOLDER_RULE (rule));
gtk_widget_destroy ((GtkWidget *) emfs);
@@ -359,15 +359,13 @@ gw_new_shared_folder_cb (GtkAction *action,
{
EMFolderSelector *selector;
EMFolderTree *folder_tree;
- EShellBackend *shell_backend;
GtkWidget *dialog;
gpointer parent;
parent = e_shell_view_get_shell_window (shell_view);
- shell_backend = e_shell_view_get_shell_backend (shell_view);
dialog = em_folder_selector_create_new (
- parent, E_MAIL_BACKEND (shell_backend), em_folder_tree_model_get_default (), 0,
+ parent, em_folder_tree_model_get_default (), 0,
_("Create folder"), _("Specify where to create the folder:"));
selector = EM_FOLDER_SELECTOR (dialog);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]