comparison libpurple/protocols/bonjour/bonjour.c @ 31907:99ca503ea087

Rename purple_notify_user_info_add_pair to purple_notify_user_info_add_pair_html, to be more explicit so hopefully people don't pass this non-html in the future.
author Mark Doliner <mark@kingant.net>
date Mon, 22 Aug 2011 02:23:28 +0000
parents 3322201b446f
children e895aebcb504 3828a61c44da
comparison
equal deleted inserted replaced
31906:e8d4755ef84b 31907:99ca503ea087
373 373
374 purple_notify_user_info_add_pair_plaintext(user_info, _("Status"), status_description); 374 purple_notify_user_info_add_pair_plaintext(user_info, _("Status"), status_description);
375 if (message != NULL) { 375 if (message != NULL) {
376 /* TODO: Check whether it's correct to call add_pair_html, 376 /* TODO: Check whether it's correct to call add_pair_html,
377 or if we should be using add_pair_plaintext */ 377 or if we should be using add_pair_plaintext */
378 purple_notify_user_info_add_pair(user_info, _("Message"), message); 378 purple_notify_user_info_add_pair_html(user_info, _("Message"), message);
379 } 379 }
380 380
381 if (bb == NULL) { 381 if (bb == NULL) {
382 purple_debug_error("bonjour", "Got tooltip request for a buddy without protocol data.\n"); 382 purple_debug_error("bonjour", "Got tooltip request for a buddy without protocol data.\n");
383 return; 383 return;
386 /* Only show first/last name if there is a nickname set (to avoid duplication) */ 386 /* Only show first/last name if there is a nickname set (to avoid duplication) */
387 if (bb->nick != NULL && *bb->nick != '\0') { 387 if (bb->nick != NULL && *bb->nick != '\0') {
388 if (bb->first != NULL && *bb->first != '\0') { 388 if (bb->first != NULL && *bb->first != '\0') {
389 /* TODO: Check whether it's correct to call add_pair_html, 389 /* TODO: Check whether it's correct to call add_pair_html,
390 or if we should be using add_pair_plaintext */ 390 or if we should be using add_pair_plaintext */
391 purple_notify_user_info_add_pair(user_info, _("First name"), bb->first); 391 purple_notify_user_info_add_pair_html(user_info, _("First name"), bb->first);
392 } 392 }
393 if (bb->last != NULL && *bb->last != '\0') { 393 if (bb->last != NULL && *bb->last != '\0') {
394 /* TODO: Check whether it's correct to call add_pair_html, 394 /* TODO: Check whether it's correct to call add_pair_html,
395 or if we should be using add_pair_plaintext */ 395 or if we should be using add_pair_plaintext */
396 purple_notify_user_info_add_pair(user_info, _("Last name"), bb->last); 396 purple_notify_user_info_add_pair_html(user_info, _("Last name"), bb->last);
397 } 397 }
398 } 398 }
399 399
400 if (bb->email != NULL && *bb->email != '\0') { 400 if (bb->email != NULL && *bb->email != '\0') {
401 /* TODO: Check whether it's correct to call add_pair_html, 401 /* TODO: Check whether it's correct to call add_pair_html,
402 or if we should be using add_pair_plaintext */ 402 or if we should be using add_pair_plaintext */
403 purple_notify_user_info_add_pair(user_info, _("Email"), bb->email); 403 purple_notify_user_info_add_pair_html(user_info, _("Email"), bb->email);
404 } 404 }
405 405
406 if (bb->AIM != NULL && *bb->AIM != '\0') { 406 if (bb->AIM != NULL && *bb->AIM != '\0') {
407 /* TODO: Check whether it's correct to call add_pair_html, 407 /* TODO: Check whether it's correct to call add_pair_html,
408 or if we should be using add_pair_plaintext */ 408 or if we should be using add_pair_plaintext */
409 purple_notify_user_info_add_pair(user_info, _("AIM Account"), bb->AIM); 409 purple_notify_user_info_add_pair_html(user_info, _("AIM Account"), bb->AIM);
410 } 410 }
411 411
412 if (bb->jid != NULL && *bb->jid != '\0') { 412 if (bb->jid != NULL && *bb->jid != '\0') {
413 /* TODO: Check whether it's correct to call add_pair_html, 413 /* TODO: Check whether it's correct to call add_pair_html,
414 or if we should be using add_pair_plaintext */ 414 or if we should be using add_pair_plaintext */
415 purple_notify_user_info_add_pair(user_info, _("XMPP Account"), bb->jid); 415 purple_notify_user_info_add_pair_html(user_info, _("XMPP Account"), bb->jid);
416 } 416 }
417 } 417 }
418 418
419 static void 419 static void
420 bonjour_do_group_change(PurpleBuddy *buddy, const char *new_group) { 420 bonjour_do_group_change(PurpleBuddy *buddy, const char *new_group) {