[evolution-mapi] Avoid deprecated libedataserver APIs.



commit 074138ce70c9dd002bf81c5099e7ee4cea0014a9
Author: Matthew Barnes <mbarnes redhat com>
Date:   Sat Jan 12 14:47:25 2013 -0500

    Avoid deprecated libedataserver APIs.

 src/addressbook/e-book-backend-mapi.c |   10 +++++-----
 src/calendar/e-cal-backend-mapi.c     |    6 +++---
 2 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/src/addressbook/e-book-backend-mapi.c b/src/addressbook/e-book-backend-mapi.c
index 8ef0cfe..7e1930b 100644
--- a/src/addressbook/e-book-backend-mapi.c
+++ b/src/addressbook/e-book-backend-mapi.c
@@ -933,10 +933,10 @@ ebbm_operation_cb (OperationBase *op, gboolean cancelled, EBookBackend *backend)
 
 			e_data_book_respond_create_contacts (op->book, op->opid, error, added_contacts);
 
-			e_util_free_object_slist (added_contacts);
+			g_slist_free_full (added_contacts, (GDestroyNotify) g_object_unref);
 		}
 
-		e_util_free_string_slist (ops->str_slist);
+		g_slist_free_full (ops->str_slist, (GDestroyNotify) g_free);
 	} break;
 	case OP_REMOVE_CONTACTS: {
 		OperationStrSlist *ops = (OperationStrSlist *) op;
@@ -970,7 +970,7 @@ ebbm_operation_cb (OperationBase *op, gboolean cancelled, EBookBackend *backend)
 			g_slist_free (removed_ids);
 		}
 
-		e_util_free_string_slist (ops->str_slist);
+		g_slist_free_full (ops->str_slist, (GDestroyNotify) g_free);
 	} break;
 	case OP_MODIFY_CONTACTS: {
 		OperationStrSlist *ops = (OperationStrSlist *) op;
@@ -997,10 +997,10 @@ ebbm_operation_cb (OperationBase *op, gboolean cancelled, EBookBackend *backend)
 
 			e_data_book_respond_modify_contacts (op->book, op->opid, error, modified_contacts);
 
-			e_util_free_object_slist (modified_contacts);
+			g_slist_free_full (modified_contacts, (GDestroyNotify) g_object_unref);
 		}
 
-		e_util_free_string_slist (ops->str_slist);
+		g_slist_free_full (ops->str_slist, (GDestroyNotify) g_free);
 	} break;
 	case OP_GET_CONTACT: {
 		OperationStr *ops = (OperationStr *) op;
diff --git a/src/calendar/e-cal-backend-mapi.c b/src/calendar/e-cal-backend-mapi.c
index a2b6124..3bc3539 100644
--- a/src/calendar/e-cal-backend-mapi.c
+++ b/src/calendar/e-cal-backend-mapi.c
@@ -2725,11 +2725,11 @@ ecbm_operation_cb (OperationBase *op, gboolean cancelled, ECalBackend *backend)
 			e_data_cal_respond_create_objects (op->cal, op->opid, error, uids, new_components);
 
 			/* free memory */
-			e_util_free_string_slist (uids);
+			g_slist_free_full (uids, (GDestroyNotify) g_free);
 			e_util_free_nullable_object_slist (new_components);
 		}
 
-		e_util_free_string_slist (opc->calobjs);
+		g_slist_free_full (opc->calobjs, (GDestroyNotify) g_free);
 	} break;
 	case OP_MODIFY_OBJECTS: {
 		OperationModify *opm = (OperationModify *) op;
@@ -2763,7 +2763,7 @@ ecbm_operation_cb (OperationBase *op, gboolean cancelled, ECalBackend *backend)
 			e_util_free_nullable_object_slist (new_components);
 		}
 
-		e_util_free_string_slist (opm->calobjs);
+		g_slist_free_full (opm->calobjs, (GDestroyNotify) g_free);
 	} break;
 	case OP_REMOVE_OBJECTS: {
 		OperationRemove *opr = (OperationRemove *) op;



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