Mercurial > pidgin.yaz
comparison src/buddy.c @ 5131:feda37d46e17
[gaim-migrate @ 5494]
Added an overlay icon for "Not Authorized" buddies for ICQ, as suggested
by Nathan Walp.
Added a "Status: Not Authorized" line to the tooltip for ICQ buddies whose
authorization you don't have. This required making the gaim core call the
tooltip_text prpl function for offline buddies (previously it was only
called for online buddies).
Fixed the right-click "Re-request authorization" action. That was a stupid
problem with a } being in the wrong place at the wrong time. I put it in
line. Some brackets just require more guidance than others.
Fixed a minor crashbug on solaris when trying to print NULL values.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Mon, 14 Apr 2003 18:24:38 +0000 |
parents | c081a81ee013 |
children | 102135caa225 |
comparison
equal
deleted
inserted
replaced
5130:b9822577ce00 | 5131:feda37d46e17 |
---|---|
693 g_free(statustext); | 693 g_free(statustext); |
694 statustext = new; | 694 statustext = new; |
695 } | 695 } |
696 } | 696 } |
697 | 697 |
698 if (!statustext && !GAIM_BUDDY_IS_ONLINE(b)) | |
699 statustext = g_strdup(_("<b>Status:</b> Offline")); | |
700 | |
698 if (b->idle > 0) { | 701 if (b->idle > 0) { |
699 int ihrs, imin; | 702 int ihrs, imin; |
700 time_t t; | 703 time_t t; |
701 time(&t); | 704 time(&t); |
702 ihrs = (t - b->idle) / 3600; | 705 ihrs = (t - b->idle) / 3600; |
719 text = g_strdup_printf("<span size='larger' weight='bold'>%s</span>" | 722 text = g_strdup_printf("<span size='larger' weight='bold'>%s</span>" |
720 "%s %s" /* Alias */ | 723 "%s %s" /* Alias */ |
721 "%s %s" /* Nickname */ | 724 "%s %s" /* Nickname */ |
722 "%s %s" /* Idle */ | 725 "%s %s" /* Idle */ |
723 "%s %s" /* Warning */ | 726 "%s %s" /* Warning */ |
724 "%s" /* Offline */ | |
725 "%s%s" /* Status */ | 727 "%s%s" /* Status */ |
726 "%s", | 728 "%s", |
727 b->name, | 729 b->name, |
728 aliastext ? _("\n<b>Alias:</b>") : "", aliastext ? aliastext : "", | 730 aliastext ? _("\n<b>Alias:</b>") : "", aliastext ? aliastext : "", |
729 nicktext ? _("\n<b>Nickname:</b>") : "", nicktext ? nicktext : "", | 731 nicktext ? _("\n<b>Nickname:</b>") : "", nicktext ? nicktext : "", |
730 idletime ? _("\n<b>Idle:</b>") : "", idletime ? idletime : "", | 732 idletime ? _("\n<b>Idle:</b>") : "", idletime ? idletime : "", |
731 b->evil ? _("\n<b>Warned:</b>") : "", b->evil ? warning : "", | 733 b->evil ? _("\n<b>Warned:</b>") : "", b->evil ? warning : "", |
732 !GAIM_BUDDY_IS_ONLINE(b) ? _("\n<b>Status:</b> Offline") : "", | |
733 statustext ? "\n" : "", statustext ? statustext : "", | 734 statustext ? "\n" : "", statustext ? statustext : "", |
734 !g_ascii_strcasecmp(b->name, "robflynn") ? _("\n<b>Description:</b> Spooky") : ""); | 735 !g_ascii_strcasecmp(b->name, "robflynn") ? _("\n<b>Description:</b> Spooky") : ""); |
735 | 736 |
736 if(warning) | 737 if(warning) |
737 g_free(warning); | 738 g_free(warning); |