Mercurial > pidgin
comparison plugins/gevolution/add_buddy_dialog.c @ 11054:bc700cc98b82
[gaim-migrate @ 12992]
Patch #1218079 from Stanislav Brabec
"Attached patch adds basic support for Novell Groupwise to Gaim Evolution integration."
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Sun, 03 Jul 2005 06:42:16 +0000 |
parents | 5cda52915a1f |
children | 1f70f265cf27 |
comparison
equal
deleted
inserted
replaced
11053:da05145441ca | 11054:bc700cc98b82 |
---|---|
289 | 289 |
290 for (c = cards; c != NULL; c = c->next) | 290 for (c = cards; c != NULL; c = c->next) |
291 { | 291 { |
292 EContact *contact = E_CONTACT(c->data); | 292 EContact *contact = E_CONTACT(c->data); |
293 const char *name; | 293 const char *name; |
294 GList *aims, *jabbers, *yahoos, *msns, *icqs; | 294 GList *aims, *jabbers, *yahoos, *msns, *icqs, *novells; |
295 | 295 |
296 name = e_contact_get_const(contact, E_CONTACT_FULL_NAME); | 296 name = e_contact_get_const(contact, E_CONTACT_FULL_NAME); |
297 | 297 |
298 aims = e_contact_get(contact, E_CONTACT_IM_AIM); | 298 aims = e_contact_get(contact, E_CONTACT_IM_AIM); |
299 jabbers = e_contact_get(contact, E_CONTACT_IM_JABBER); | 299 jabbers = e_contact_get(contact, E_CONTACT_IM_JABBER); |
300 yahoos = e_contact_get(contact, E_CONTACT_IM_YAHOO); | 300 yahoos = e_contact_get(contact, E_CONTACT_IM_YAHOO); |
301 msns = e_contact_get(contact, E_CONTACT_IM_MSN); | 301 msns = e_contact_get(contact, E_CONTACT_IM_MSN); |
302 icqs = e_contact_get(contact, E_CONTACT_IM_ICQ); | 302 icqs = e_contact_get(contact, E_CONTACT_IM_ICQ); |
303 novells = e_contact_get(contact, E_CONTACT_IM_GROUPWISE); | |
303 | 304 |
304 if (aims == NULL && jabbers == NULL && yahoos == NULL && | 305 if (aims == NULL && jabbers == NULL && yahoos == NULL && |
305 msns == NULL && icqs == NULL) | 306 msns == NULL && icqs == NULL && novells == NULL) |
306 { | 307 { |
307 GtkTreeIter iter; | 308 GtkTreeIter iter; |
308 | 309 |
309 gtk_list_store_append(dialog->model, &iter); | 310 gtk_list_store_append(dialog->model, &iter); |
310 | 311 |
318 add_ims(dialog, contact, name, aims, "prpl-oscar"); | 319 add_ims(dialog, contact, name, aims, "prpl-oscar"); |
319 add_ims(dialog, contact, name, jabbers, "prpl-jabber"); | 320 add_ims(dialog, contact, name, jabbers, "prpl-jabber"); |
320 add_ims(dialog, contact, name, yahoos, "prpl-yahoo"); | 321 add_ims(dialog, contact, name, yahoos, "prpl-yahoo"); |
321 add_ims(dialog, contact, name, msns, "prpl-msn"); | 322 add_ims(dialog, contact, name, msns, "prpl-msn"); |
322 add_ims(dialog, contact, name, icqs, "prpl-oscar"); | 323 add_ims(dialog, contact, name, icqs, "prpl-oscar"); |
324 add_ims(dialog, contact, name, novells, "prpl-novell"); | |
323 } | 325 } |
324 } | 326 } |
325 | 327 |
326 dialog->contacts = cards; | 328 dialog->contacts = cards; |
327 dialog->book = book; | 329 dialog->book = book; |
359 | 361 |
360 for (l = dialog->contacts; l != NULL; l = l->next) | 362 for (l = dialog->contacts; l != NULL; l = l->next) |
361 { | 363 { |
362 EContact *contact = E_CONTACT(l->data); | 364 EContact *contact = E_CONTACT(l->data); |
363 const char *name; | 365 const char *name; |
364 GList *aims, *jabbers, *yahoos, *msns, *icqs; | 366 GList *aims, *jabbers, *yahoos, *msns, *icqs, *novells; |
365 | 367 |
366 name = e_contact_get_const(contact, E_CONTACT_FULL_NAME); | 368 name = e_contact_get_const(contact, E_CONTACT_FULL_NAME); |
367 | 369 |
368 if (text != NULL && *text != '\0' && name != NULL && | 370 if (text != NULL && *text != '\0' && name != NULL && |
369 g_ascii_strncasecmp(name, text, strlen(text))) | 371 g_ascii_strncasecmp(name, text, strlen(text))) |
374 aims = e_contact_get(contact, E_CONTACT_IM_AIM); | 376 aims = e_contact_get(contact, E_CONTACT_IM_AIM); |
375 jabbers = e_contact_get(contact, E_CONTACT_IM_JABBER); | 377 jabbers = e_contact_get(contact, E_CONTACT_IM_JABBER); |
376 yahoos = e_contact_get(contact, E_CONTACT_IM_YAHOO); | 378 yahoos = e_contact_get(contact, E_CONTACT_IM_YAHOO); |
377 msns = e_contact_get(contact, E_CONTACT_IM_MSN); | 379 msns = e_contact_get(contact, E_CONTACT_IM_MSN); |
378 icqs = e_contact_get(contact, E_CONTACT_IM_ICQ); | 380 icqs = e_contact_get(contact, E_CONTACT_IM_ICQ); |
381 novells = e_contact_get(contact, E_CONTACT_IM_GROUPWISE); | |
379 | 382 |
380 if (aims == NULL && jabbers == NULL && yahoos == NULL && | 383 if (aims == NULL && jabbers == NULL && yahoos == NULL && |
381 msns == NULL && icqs == NULL) | 384 msns == NULL && icqs == NULL && novells == NULL) |
382 { | 385 { |
383 GtkTreeIter iter; | 386 GtkTreeIter iter; |
384 | 387 |
385 gtk_list_store_append(dialog->model, &iter); | 388 gtk_list_store_append(dialog->model, &iter); |
386 | 389 |
394 add_ims(dialog, contact, name, aims, "prpl-oscar"); | 397 add_ims(dialog, contact, name, aims, "prpl-oscar"); |
395 add_ims(dialog, contact, name, jabbers, "prpl-jabber"); | 398 add_ims(dialog, contact, name, jabbers, "prpl-jabber"); |
396 add_ims(dialog, contact, name, yahoos, "prpl-yahoo"); | 399 add_ims(dialog, contact, name, yahoos, "prpl-yahoo"); |
397 add_ims(dialog, contact, name, msns, "prpl-msn"); | 400 add_ims(dialog, contact, name, msns, "prpl-msn"); |
398 add_ims(dialog, contact, name, icqs, "prpl-oscar"); | 401 add_ims(dialog, contact, name, icqs, "prpl-oscar"); |
402 add_ims(dialog, contact, name, novells, "prpl-novell"); | |
399 } | 403 } |
400 } | 404 } |
401 } | 405 } |
402 | 406 |
403 static void | 407 static void |