comparison libpurple/protocols/novell/novell.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 a13f4cad3cdd 3828a61c44da
comparison
equal deleted inserted replaced
31906:e8d4755ef84b 31907:99ca503ea087
1515 tag = _("User ID"); 1515 tag = _("User ID");
1516 value = nm_user_record_get_userid(user_record); 1516 value = nm_user_record_get_userid(user_record);
1517 if (value) { 1517 if (value) {
1518 /* TODO: Check whether it's correct to call add_pair_html, 1518 /* TODO: Check whether it's correct to call add_pair_html,
1519 or if we should be using add_pair_plaintext */ 1519 or if we should be using add_pair_plaintext */
1520 purple_notify_user_info_add_pair(user_info, tag, value); 1520 purple_notify_user_info_add_pair_html(user_info, tag, value);
1521 } 1521 }
1522 1522
1523 #if 0 1523 #if 0
1524 tag = _("DN"); 1524 tag = _("DN");
1525 value = nm_user_record_get_dn(user_record); 1525 value = nm_user_record_get_dn(user_record);
1526 if (value) { 1526 if (value) {
1527 /* TODO: Check whether it's correct to call add_pair_html, 1527 /* TODO: Check whether it's correct to call add_pair_html,
1528 or if we should be using add_pair_plaintext */ 1528 or if we should be using add_pair_plaintext */
1529 purple_notify_user_info_add_pair(user_info, tag, value); 1529 purple_notify_user_info_add_pair_html(user_info, tag, value);
1530 } 1530 }
1531 #endif /* if 0 */ 1531 #endif /* if 0 */
1532 1532
1533 tag = _("Full name"); 1533 tag = _("Full name");
1534 value = nm_user_record_get_full_name(user_record); 1534 value = nm_user_record_get_full_name(user_record);
1535 if (value) { 1535 if (value) {
1536 /* TODO: Check whether it's correct to call add_pair_html, 1536 /* TODO: Check whether it's correct to call add_pair_html,
1537 or if we should be using add_pair_plaintext */ 1537 or if we should be using add_pair_plaintext */
1538 purple_notify_user_info_add_pair(user_info, tag, value); 1538 purple_notify_user_info_add_pair_html(user_info, tag, value);
1539 } 1539 }
1540 1540
1541 count = nm_user_record_get_property_count(user_record); 1541 count = nm_user_record_get_property_count(user_record);
1542 for (i = 0; i < count; i++) { 1542 for (i = 0; i < count; i++) {
1543 property = nm_user_record_get_property(user_record, i); 1543 property = nm_user_record_get_property(user_record, i);
1545 tag = _map_property_tag(nm_property_get_tag(property)); 1545 tag = _map_property_tag(nm_property_get_tag(property));
1546 value = nm_property_get_value(property); 1546 value = nm_property_get_value(property);
1547 if (tag && value) { 1547 if (tag && value) {
1548 /* TODO: Check whether it's correct to call add_pair_html, 1548 /* TODO: Check whether it's correct to call add_pair_html,
1549 or if we should be using add_pair_plaintext */ 1549 or if we should be using add_pair_plaintext */
1550 purple_notify_user_info_add_pair(user_info, tag, value); 1550 purple_notify_user_info_add_pair_html(user_info, tag, value);
1551 } 1551 }
1552 nm_release_property(property); 1552 nm_release_property(property);
1553 } 1553 }
1554 } 1554 }
1555 1555
2872 purple_notify_user_info_add_pair_plaintext(user_info, _("Status"), status_str); 2872 purple_notify_user_info_add_pair_plaintext(user_info, _("Status"), status_str);
2873 2873
2874 if (text) { 2874 if (text) {
2875 /* TODO: Check whether it's correct to call add_pair_html, 2875 /* TODO: Check whether it's correct to call add_pair_html,
2876 or if we should be using add_pair_plaintext */ 2876 or if we should be using add_pair_plaintext */
2877 purple_notify_user_info_add_pair(user_info, _("Message"), text); 2877 purple_notify_user_info_add_pair_html(user_info, _("Message"), text);
2878 } 2878 }
2879 } 2879 }
2880 } 2880 }
2881 } 2881 }
2882 2882