aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/merging/eab-contact-compare.c
diff options
context:
space:
mode:
authorRoss Burton <rburton@src.gnome.org>2004-01-09 20:18:33 +0800
committerRoss Burton <rburton@src.gnome.org>2004-01-09 20:18:33 +0800
commit51a593107b1a483263fd1cc92d2ad682958a4e7a (patch)
treeae7f6558dbad592f623ac8a629062d5714838842 /addressbook/gui/merging/eab-contact-compare.c
parentaf3f81fbeaebd6d45fb4142611c1338c576da29f (diff)
downloadgsoc2013-evolution-51a593107b1a483263fd1cc92d2ad682958a4e7a.tar
gsoc2013-evolution-51a593107b1a483263fd1cc92d2ad682958a4e7a.tar.gz
gsoc2013-evolution-51a593107b1a483263fd1cc92d2ad682958a4e7a.tar.bz2
gsoc2013-evolution-51a593107b1a483263fd1cc92d2ad682958a4e7a.tar.lz
gsoc2013-evolution-51a593107b1a483263fd1cc92d2ad682958a4e7a.tar.xz
gsoc2013-evolution-51a593107b1a483263fd1cc92d2ad682958a4e7a.tar.zst
gsoc2013-evolution-51a593107b1a483263fd1cc92d2ad682958a4e7a.zip
Update for API changes to e-book-async
svn path=/trunk/; revision=24130
Diffstat (limited to 'addressbook/gui/merging/eab-contact-compare.c')
-rw-r--r--addressbook/gui/merging/eab-contact-compare.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/addressbook/gui/merging/eab-contact-compare.c b/addressbook/gui/merging/eab-contact-compare.c
index 409b1bce81..de0c7b4675 100644
--- a/addressbook/gui/merging/eab-contact-compare.c
+++ b/addressbook/gui/merging/eab-contact-compare.c
@@ -617,7 +617,8 @@ use_common_book_cb (EBook *book, gpointer closure)
GList *contact_email;
gchar *query_parts[MAX_QUERY_PARTS];
gint p=0;
- gchar *query, *qj;
+ gchar *qj;
+ EBookQuery *query = NULL;
int i;
if (book == NULL) {
@@ -669,18 +670,21 @@ use_common_book_cb (EBook *book, gpointer closure)
for(i = 0; query_parts[i] != NULL; i++)
g_free(query_parts[i]);
if (p > 0) {
- query = g_strdup_printf ("(or %s)", qj);
- g_free (qj);
+ char *s;
+ s = g_strdup_printf ("(or %s)", qj);
+ query = e_book_query_from_string (s);
+ g_free (s);
} else {
- query = qj;
+ query = e_book_query_from_string (qj);
}
- if (query && *query)
+ if (query)
e_book_async_get_contacts (book, query, query_cb, info);
else
query_cb (book, E_BOOK_ERROR_OK, NULL, info);
- g_free (query);
+ g_free (qj);
+ e_book_query_unref (query);
}
void