Mercurial > pidgin
diff libpurple/protocols/myspace/user.c @ 31901:dc3ea8f6381a
Use purple_notify_user_info_add_pair_plaintext in some places where we
were using purple_notify_user_info_add_pair (which expects an html string
for the value). Feel free to double check these if you care about one of
these protocols.
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sun, 21 Aug 2011 18:43:00 +0000 |
parents | a5b556ac1de5 |
children | 3322201b446f |
line wrap: on
line diff
--- a/libpurple/protocols/myspace/user.c Sun Aug 21 18:04:00 2011 +0000 +++ b/libpurple/protocols/myspace/user.c Sun Aug 21 18:43:00 2011 +0000 @@ -117,27 +117,27 @@ /* Useful to identify the account the tooltip refers to. * Other prpls show this. */ if (user->username) { - purple_notify_user_info_add_pair(user_info, _("User"), user->username); + purple_notify_user_info_add_pair_plaintext(user_info, _("User"), user->username); } /* a/s/l...the vitals */ if (user->age) { char age[16]; g_snprintf(age, sizeof(age), "%d", user->age); - purple_notify_user_info_add_pair(user_info, _("Age"), age); + purple_notify_user_info_add_pair_plaintext(user_info, _("Age"), age); } if (user->gender && *user->gender) { - purple_notify_user_info_add_pair(user_info, _("Gender"), user->gender); + purple_notify_user_info_add_pair_plaintext(user_info, _("Gender"), user->gender); } if (user->location && *user->location) { - purple_notify_user_info_add_pair(user_info, _("Location"), user->location); + purple_notify_user_info_add_pair_plaintext(user_info, _("Location"), user->location); } /* Other information */ if (user->headline && *user->headline) { - purple_notify_user_info_add_pair(user_info, _("Headline"), user->headline); + purple_notify_user_info_add_pair_plaintext(user_info, _("Headline"), user->headline); } if (user->buddy != NULL) { @@ -153,7 +153,7 @@ str = msim_format_now_playing(artist, title); if (str && *str) { - purple_notify_user_info_add_pair(user_info, _("Song"), str); + purple_notify_user_info_add_pair_plaintext(user_info, _("Song"), str); } g_free(str); } @@ -163,7 +163,7 @@ if (user->total_friends) { char friends[16]; g_snprintf(friends, sizeof(friends), "%d", user->total_friends); - purple_notify_user_info_add_pair(user_info, _("Total Friends"), friends); + purple_notify_user_info_add_pair_plaintext(user_info, _("Total Friends"), friends); } if (full) { @@ -181,7 +181,7 @@ client = g_strdup_printf("Build %d", cv); } if (client && *client) - purple_notify_user_info_add_pair(user_info, _("Client Version"), client); + purple_notify_user_info_add_pair_plaintext(user_info, _("Client Version"), client); g_free(client); }