[evolution-data-server] EBookClientView: Use e_util_free_object_slist() utility function
- From: Christophe Dumez <cdumez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] EBookClientView: Use e_util_free_object_slist() utility function
- Date: Tue, 11 Oct 2011 06:38:32 +0000 (UTC)
commit 624c1b55821a176a47cd316ccbf793d59ba64faa
Author: Christophe Dumez <christophe dumez intel com>
Date: Tue Oct 11 09:36:59 2011 +0300
EBookClientView: Use e_util_free_object_slist() utility function
addressbook/libebook/e-book-client-view.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/addressbook/libebook/e-book-client-view.c b/addressbook/libebook/e-book-client-view.c
index 6ec3633..00f5aba 100644
--- a/addressbook/libebook/e-book-client-view.c
+++ b/addressbook/libebook/e-book-client-view.c
@@ -31,6 +31,7 @@
#include "e-book-client-view-private.h"
#include "e-book-marshal.h"
#include "libedata-book/e-data-book-types.h"
+#include "libedataserver/e-data-server-util.h"
#include "e-gdbus-book-view.h"
G_DEFINE_TYPE (EBookClientView, e_book_client_view, G_TYPE_OBJECT);
@@ -72,8 +73,7 @@ objects_added_cb (EGdbusBookView *object,
g_signal_emit (view, signals[OBJECTS_ADDED], 0, contacts);
- g_slist_foreach (contacts, (GFunc) g_object_unref, NULL);
- g_slist_free (contacts);
+ e_util_free_object_slist (contacts);
}
static void
@@ -95,8 +95,7 @@ objects_modified_cb (EGdbusBookView *object,
g_signal_emit (view, signals[OBJECTS_MODIFIED], 0, contacts);
- g_slist_foreach (contacts, (GFunc) g_object_unref, NULL);
- g_slist_free (contacts);
+ e_util_free_object_slist (contacts);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]