| 573 |
573 |
| 574 user_info_entry->type = type; |
574 user_info_entry->type = type; |
| 575 } |
575 } |
| 576 |
576 |
| 577 void |
577 void |
| 578 purple_notify_user_info_add_pair(PurpleNotifyUserInfo *user_info, const char *label, const char *value) |
578 purple_notify_user_info_add_pair_html(PurpleNotifyUserInfo *user_info, const char *label, const char *value) |
| 579 { |
579 { |
| 580 PurpleNotifyUserInfoEntry *entry; |
580 PurpleNotifyUserInfoEntry *entry; |
| 581 |
581 |
| 582 entry = purple_notify_user_info_entry_new(label, value); |
582 entry = purple_notify_user_info_entry_new(label, value); |
| 583 user_info->user_info_entries = g_list_append(user_info->user_info_entries, entry); |
583 user_info->user_info_entries = g_list_append(user_info->user_info_entries, entry); |
| 585 |
585 |
| 586 void |
586 void |
| 587 purple_notify_user_info_add_pair_plaintext(PurpleNotifyUserInfo *user_info, const char *label, const char *value) |
587 purple_notify_user_info_add_pair_plaintext(PurpleNotifyUserInfo *user_info, const char *label, const char *value) |
| 588 { |
588 { |
| 589 gchar *escaped; |
589 gchar *escaped; |
| 590 PurpleNotifyUserInfoEntry *entry; |
|
| 591 |
590 |
| 592 escaped = g_markup_escape_text(value, -1); |
591 escaped = g_markup_escape_text(value, -1); |
| 593 entry = purple_notify_user_info_entry_new(label, escaped); |
592 purple_notify_user_info_add_pair_html(user_info, label, escaped); |
| 594 g_free(escaped); |
593 g_free(escaped); |
| 595 user_info->user_info_entries = g_list_append(user_info->user_info_entries, entry); |
|
| 596 } |
594 } |
| 597 |
595 |
| 598 void |
596 void |
| 599 purple_notify_user_info_prepend_pair(PurpleNotifyUserInfo *user_info, const char *label, const char *value) |
597 purple_notify_user_info_prepend_pair(PurpleNotifyUserInfo *user_info, const char *label, const char *value) |
| 600 { |
598 { |