| 666 |
666 |
| 667 b = gaim_find_buddy(gaim_connection_get_account(info_data->gc), |
667 b = gaim_find_buddy(gaim_connection_get_account(info_data->gc), |
| 668 info_data->name); |
668 info_data->name); |
| 669 |
669 |
| 670 if (b) { |
670 if (b) { |
| 671 char *statustext = yahoo_tooltip_text(b, TRUE); |
671 GString *str = g_string_new(""); |
| |
672 char *tmp; |
| |
673 |
| 672 if(b->alias && b->alias[0]) { |
674 if(b->alias && b->alias[0]) { |
| 673 char *aliastext = g_markup_escape_text(b->alias, -1); |
675 char *aliastext = g_markup_escape_text(b->alias, -1); |
| 674 g_string_append_printf(s, _("<b>Alias:</b> %s<br>"), aliastext); |
676 g_string_append_printf(s, _("<b>Alias:</b> %s<br>"), aliastext); |
| 675 g_free(aliastext); |
677 g_free(aliastext); |
| 676 } |
678 } |
| 680 g_string_append_printf(s, _("<b>%s:</b> %s<br>"), _("Idle"), |
682 g_string_append_printf(s, _("<b>%s:</b> %s<br>"), _("Idle"), |
| 681 idletime); |
683 idletime); |
| 682 g_free(idletime); |
684 g_free(idletime); |
| 683 } |
685 } |
| 684 #endif |
686 #endif |
| 685 if (statustext) { |
687 |
| 686 char *tmp; |
688 yahoo_tooltip_text(b, str, TRUE); |
| 687 g_strstrip(statustext); |
689 tmp = gaim_strreplace((*str->str == '\n' ? str->str + 1 : str->str), |
| 688 tmp = gaim_strreplace(statustext, "\n", "<br>"); |
690 "\n", "<br>"); |
| 689 g_free(statustext); |
691 g_string_free(str, TRUE); |
| 690 g_string_append_printf(s, "%s<br>", tmp); |
692 g_string_append_printf(s, "%s<br>", tmp); |
| 691 g_free(tmp); |
693 g_free(tmp); |
| 692 } |
694 |
| 693 if ((f = yahoo_friend_find(info_data->gc, b->name))) { |
695 if ((f = yahoo_friend_find(info_data->gc, b->name))) { |
| 694 const char *ip; |
696 const char *ip; |
| 695 if ((ip = yahoo_friend_get_ip(f))) |
697 if ((ip = yahoo_friend_get_ip(f))) |
| 696 g_string_append_printf(s, _("<b>IP Address:</b> %s<br>"), ip); |
698 g_string_append_printf(s, _("<b>IP Address:</b> %s<br>"), ip); |
| 697 } |
699 } |