[evolution-ews] Camel moving create folder to new operation API



commit ba4f1caf6e910a289d97deea18974dbfcfc3d90c
Author: Pavel Ocheretny <pocheretny git gnome org>
Date:   Tue May 3 11:35:03 2011 +0300

    Camel moving create folder to new operation API

 src/camel/camel-ews-store.c |   10 ++++------
 src/camel/camel-ews-store.h |    1 +
 2 files changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/src/camel/camel-ews-store.c b/src/camel/camel-ews-store.c
index 1db63ec..e2365bd 100644
--- a/src/camel/camel-ews-store.c
+++ b/src/camel/camel-ews-store.c
@@ -552,7 +552,6 @@ ews_create_folder_sync (CamelStore *store,
 	gchar *fid = NULL;
 	gchar *full_name;
 	EwsFolderId *folder_id;
-	EVO2(GCancellable *cancellable = NULL;)
 	CamelFolderInfo *fi = NULL;
 
 	
@@ -567,11 +566,10 @@ ews_create_folder_sync (CamelStore *store,
 		}
 	}
 
-	/* Make the call */
-	if (!e_ews_connection_create_folder (ews_store->priv->cnc,
-					     EWS_PRIORITY_MEDIUM, fid,
-					     FALSE, folder_name, &folder_id,
-					     cancellable, error)) {
+	/* Make the call with new API*/
+	if (!e_ews_create_folder_operation_sync (ews_store->priv->cnc,
+						 fid, FALSE, folder_name, &folder_id,
+						 error)) {
 		g_free (fid);
 		return NULL;
 	}
diff --git a/src/camel/camel-ews-store.h b/src/camel/camel-ews-store.h
index 65497b1..6ab2b6b 100644
--- a/src/camel/camel-ews-store.h
+++ b/src/camel/camel-ews-store.h
@@ -27,6 +27,7 @@
 #include <camel/camel.h>
 
 #include <e-ews-connection.h>
+#include <e-ews-create-folder-operation.h>
 #include "camel-ews-store-summary.h"
 
 /* Standard GObject macros */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]