Mercurial > pidgin
comparison src/protocols/jabber/buddy.c @ 7076:9f1a6c97108d
[gaim-migrate @ 7641]
this doesn't work yet...but it will
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Tue, 30 Sep 2003 18:08:15 +0000 |
parents | 67c4e9d39242 |
children | db6bd3e794d8 |
comparison
equal
deleted
inserted
replaced
7075:4e5654931401 | 7076:9f1a6c97108d |
---|---|
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
19 * | 19 * |
20 */ | 20 */ |
21 #include "internal.h" | 21 #include "internal.h" |
22 #include "debug.h" | 22 #include "debug.h" |
23 #include "imgstore.h" | |
23 #include "multi.h" | 24 #include "multi.h" |
24 #include "notify.h" | 25 #include "notify.h" |
25 #include "request.h" | 26 #include "request.h" |
26 #include "util.h" | 27 #include "util.h" |
27 | 28 |
712 g_string_append_printf(info_text, "<b>%s:</b> %s<br/>\n", | 713 g_string_append_printf(info_text, "<b>%s:</b> %s<br/>\n", |
713 _("Role"), text); | 714 _("Role"), text); |
714 } else if(text && !strcmp(child->name, "DESC")) { | 715 } else if(text && !strcmp(child->name, "DESC")) { |
715 g_string_append_printf(info_text, "<b>%s:</b> %s<br/>\n", | 716 g_string_append_printf(info_text, "<b>%s:</b> %s<br/>\n", |
716 _("Description"), text); | 717 _("Description"), text); |
718 } else if(!strcmp(child->name, "PHOTO") || | |
719 !strcmp(child->name, "LOGO")) { | |
720 if((child2 = xmlnode_get_child(child, "BINVAL"))) { | |
721 char *data, *text2; | |
722 int size, imgid; | |
723 if((text2 = xmlnode_get_data(child2))) { | |
724 frombase64(text2, &data, &size); | |
725 | |
726 imgid = gaim_imgstore_add(data, size, "logo.png"); | |
727 g_string_append_printf(info_text, | |
728 "<b>%s:</b> <img id='%d' /><br/>", | |
729 strcmp(child->name, "PHOTO") == 0 ? | |
730 _("Photo") : _("Logo"), | |
731 imgid); | |
732 | |
733 g_free(data); | |
734 g_free(text2); | |
735 } | |
736 } | |
717 } | 737 } |
718 g_free(text); | 738 g_free(text); |
719 } | 739 } |
720 } | 740 } |
721 | 741 |