Mercurial > pidgin
diff 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 |
line wrap: on
line diff
--- a/libpurple/notify.c Mon Aug 22 02:11:36 2011 +0000 +++ b/libpurple/notify.c Mon Aug 22 02:23:28 2011 +0000 @@ -575,7 +575,7 @@ } void -purple_notify_user_info_add_pair(PurpleNotifyUserInfo *user_info, const char *label, const char *value) +purple_notify_user_info_add_pair_html(PurpleNotifyUserInfo *user_info, const char *label, const char *value) { PurpleNotifyUserInfoEntry *entry; @@ -587,12 +587,10 @@ purple_notify_user_info_add_pair_plaintext(PurpleNotifyUserInfo *user_info, const char *label, const char *value) { gchar *escaped; - PurpleNotifyUserInfoEntry *entry; escaped = g_markup_escape_text(value, -1); - entry = purple_notify_user_info_entry_new(label, escaped); + purple_notify_user_info_add_pair_html(user_info, label, escaped); g_free(escaped); - user_info->user_info_entries = g_list_append(user_info->user_info_entries, entry); } void