Mercurial > pidgin
comparison libpurple/notify.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 | 489b20ff1c72 |
children | 6283c0f2b02f |
comparison
equal
deleted
inserted
replaced
31906:e8d4755ef84b | 31907:99ca503ea087 |
---|---|
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 { |