changeset 8127:96ee7b21c1ae

[gaim-migrate @ 8832] Updated to work with the latest libebook API. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sat, 17 Jan 2004 06:22:51 +0000
parents b6458d4ce101
children 9aafd344230d
files plugins/gevolution/gevolution.c
diffstat 1 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/gevolution/gevolution.c	Fri Jan 16 20:42:33 2004 +0000
+++ b/plugins/gevolution/gevolution.c	Sat Jan 17 06:22:51 2004 +0000
@@ -223,15 +223,19 @@
 load_timeout(gpointer data)
 {
 	GaimPlugin *plugin = (GaimPlugin *)data;
+	EBookQuery *query;
 
 	timer = 0;
 
 	if (!gevo_load_addressbook(&book, NULL))
 		return FALSE;
 
-	book_view_tag = e_book_async_get_book_view(book,
-		"(contains \"x-evolution-any-field\" \"\")",
-		got_book_view_cb, NULL);
+	query = e_book_query_any_field_contains("");
+
+	book_view_tag = e_book_async_get_book_view(book, query, NULL, -1,
+											   got_book_view_cb, NULL);
+
+	e_book_query_unref(query);
 
 	gaim_signal_connect(GAIM_GTK_BLIST(gaim_get_blist()), "drawing-menu",
 						plugin, GAIM_CALLBACK(drawing_menu_cb), NULL);