Mercurial > pidgin
comparison plugins/gevolution/gevolution.c @ 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 | 35db601609e3 |
children | d7b8eb1f0a18 |
comparison
equal
deleted
inserted
replaced
8126:b6458d4ce101 | 8127:96ee7b21c1ae |
---|---|
221 | 221 |
222 static gboolean | 222 static gboolean |
223 load_timeout(gpointer data) | 223 load_timeout(gpointer data) |
224 { | 224 { |
225 GaimPlugin *plugin = (GaimPlugin *)data; | 225 GaimPlugin *plugin = (GaimPlugin *)data; |
226 EBookQuery *query; | |
226 | 227 |
227 timer = 0; | 228 timer = 0; |
228 | 229 |
229 if (!gevo_load_addressbook(&book, NULL)) | 230 if (!gevo_load_addressbook(&book, NULL)) |
230 return FALSE; | 231 return FALSE; |
231 | 232 |
232 book_view_tag = e_book_async_get_book_view(book, | 233 query = e_book_query_any_field_contains(""); |
233 "(contains \"x-evolution-any-field\" \"\")", | 234 |
234 got_book_view_cb, NULL); | 235 book_view_tag = e_book_async_get_book_view(book, query, NULL, -1, |
236 got_book_view_cb, NULL); | |
237 | |
238 e_book_query_unref(query); | |
235 | 239 |
236 gaim_signal_connect(GAIM_GTK_BLIST(gaim_get_blist()), "drawing-menu", | 240 gaim_signal_connect(GAIM_GTK_BLIST(gaim_get_blist()), "drawing-menu", |
237 plugin, GAIM_CALLBACK(drawing_menu_cb), NULL); | 241 plugin, GAIM_CALLBACK(drawing_menu_cb), NULL); |
238 | 242 |
239 return FALSE; | 243 return FALSE; |