libpurple/notify.c

branch
next.minor
changeset 30537
9f833935ecd7
parent 25888
d0fdd378a635
child 31696
67d180e0f68d
child 40764
d687fda4047d
--- a/libpurple/notify.c	Thu Jul 08 22:23:43 2010 +0000
+++ b/libpurple/notify.c	Thu Jul 08 22:38:33 2010 +0000
@@ -602,6 +602,18 @@
 }
 
 void
+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);
+	g_free(escaped);
+	user_info->user_info_entries = g_list_append(user_info->user_info_entries, entry);
+}
+
+void
 purple_notify_user_info_prepend_pair(PurpleNotifyUserInfo *user_info, const char *label, const char *value)
 {
 	PurpleNotifyUserInfoEntry *entry;

mercurial