Mercurial > pidgin
changeset 5339:7e79bc9bedc8
[gaim-migrate @ 5715]
My last exam is tomorrow. Ye flipping gads.
http://sourceforge.net/tracker/index.php?func=detail&aid=731949&group_id=235&atid=350235
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Fri, 09 May 2003 06:12:10 +0000 |
parents | 10b5ac17fdd6 |
children | 986b2e4dae2d |
files | src/gtkblist.c |
diffstat | 1 files changed, 1 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtkblist.c Thu May 08 23:25:54 2003 +0000 +++ b/src/gtkblist.c Fri May 09 06:12:10 2003 +0000 @@ -845,15 +845,9 @@ statustext = g_strdup(_("<b>Status:</b> Offline")); if (b->idle > 0) { - int ihrs, imin; time_t t; time(&t); - ihrs = (t - b->idle) / 3600; - imin = ((t - b->idle) / 60) % 60; - if (ihrs) - idletime = g_strdup_printf(_("%dh%02dm"), ihrs, imin); - else - idletime = g_strdup_printf(_("%dm"), imin); + idletime = g_strdup(sec_to_text(t-b->idle)); } if(b->alias && b->alias[0])