Mercurial > pidgin
comparison libpurple/protocols/jabber/buddy.c @ 31920:0cc718e10344
Actually commit the purple_notify_user_info_prepend_pair_plaintext
function. I think I left it off my previous commit? Sorry.
And rename purple_notify_user_info_prepend_pair to
purple_notify_user_info_prepend_pair_html_html
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Mon, 22 Aug 2011 06:32:44 +0000 |
parents | 090736a289da |
children | 3caef255ad47 3828a61c44da |
comparison
equal
deleted
inserted
replaced
31919:090736a289da | 31920:0cc718e10344 |
---|---|
731 g_strdup_printf("%s%s%s", jbr->client.name, | 731 g_strdup_printf("%s%s%s", jbr->client.name, |
732 (jbr->client.version ? " " : ""), | 732 (jbr->client.version ? " " : ""), |
733 (jbr->client.version ? jbr->client.version : "")); | 733 (jbr->client.version ? jbr->client.version : "")); |
734 /* TODO: Check whether it's correct to call prepend_pair_html, | 734 /* TODO: Check whether it's correct to call prepend_pair_html, |
735 or if we should be using prepend_pair_plaintext */ | 735 or if we should be using prepend_pair_plaintext */ |
736 purple_notify_user_info_prepend_pair(user_info, _("Client"), tmp); | 736 purple_notify_user_info_prepend_pair_html(user_info, _("Client"), tmp); |
737 g_free(tmp); | 737 g_free(tmp); |
738 | 738 |
739 if (jbr->client.os) { | 739 if (jbr->client.os) { |
740 /* TODO: Check whether it's correct to call prepend_pair_html, | 740 /* TODO: Check whether it's correct to call prepend_pair_html, |
741 or if we should be using prepend_pair_plaintext */ | 741 or if we should be using prepend_pair_plaintext */ |
742 purple_notify_user_info_prepend_pair(user_info, _("Operating System"), jbr->client.os); | 742 purple_notify_user_info_prepend_pair_html(user_info, _("Operating System"), jbr->client.os); |
743 } | 743 } |
744 } | 744 } |
745 | 745 |
746 if (jbr && jbr->tz_off != PURPLE_NO_TZ_OFF) { | 746 if (jbr && jbr->tz_off != PURPLE_NO_TZ_OFF) { |
747 time_t now_t; | 747 time_t now_t; |
782 } | 782 } |
783 | 783 |
784 tmp = g_strdup_printf("%s%s%s", (status_name ? status_name : ""), | 784 tmp = g_strdup_printf("%s%s%s", (status_name ? status_name : ""), |
785 ((status_name && purdy) ? ": " : ""), | 785 ((status_name && purdy) ? ": " : ""), |
786 (purdy ? purdy : "")); | 786 (purdy ? purdy : "")); |
787 purple_notify_user_info_prepend_pair(user_info, _("Status"), tmp); | 787 purple_notify_user_info_prepend_pair_html(user_info, _("Status"), tmp); |
788 | 788 |
789 g_snprintf(priority, sizeof(priority), "%d", jbr->priority); | 789 g_snprintf(priority, sizeof(priority), "%d", jbr->priority); |
790 purple_notify_user_info_prepend_pair_plaintext(user_info, _("Priority"), priority); | 790 purple_notify_user_info_prepend_pair_plaintext(user_info, _("Priority"), priority); |
791 | 791 |
792 g_free(tmp); | 792 g_free(tmp); |
833 add_jbr_info(jbi, jbr->name, jbr); | 833 add_jbr_info(jbi, jbr->name, jbr); |
834 | 834 |
835 if (jbr->name) { | 835 if (jbr->name) { |
836 /* TODO: Check whether it's correct to call prepend_pair_html, | 836 /* TODO: Check whether it's correct to call prepend_pair_html, |
837 or if we should be using prepend_pair_plaintext */ | 837 or if we should be using prepend_pair_plaintext */ |
838 purple_notify_user_info_prepend_pair(user_info, _("Resource"), jbr->name); | 838 purple_notify_user_info_prepend_pair_html(user_info, _("Resource"), jbr->name); |
839 } | 839 } |
840 } | 840 } |
841 } | 841 } |
842 | 842 |
843 if (!jbi->jb->resources) { | 843 if (!jbi->jb->resources) { |
866 g_strdup_printf("%s%s%s", _("Offline"), | 866 g_strdup_printf("%s%s%s", _("Offline"), |
867 jbi->last_message ? ": " : "", | 867 jbi->last_message ? ": " : "", |
868 jbi->last_message ? jbi->last_message : ""); | 868 jbi->last_message ? jbi->last_message : ""); |
869 /* TODO: Check whether it's correct to call prepend_pair_html, | 869 /* TODO: Check whether it's correct to call prepend_pair_html, |
870 or if we should be using prepend_pair_plaintext */ | 870 or if we should be using prepend_pair_plaintext */ |
871 purple_notify_user_info_prepend_pair(user_info, _("Status"), status); | 871 purple_notify_user_info_prepend_pair_html(user_info, _("Status"), status); |
872 g_free(status); | 872 g_free(status); |
873 } | 873 } |
874 } | 874 } |
875 | 875 |
876 g_free(resource_name); | 876 g_free(resource_name); |