Mercurial > pidgin.yaz
comparison src/gtkblist.c @ 13819:f41a515307a9
[gaim-migrate @ 16251]
Having the idle time in the buddy list mean minutes without a colon and hours:minutes with confuses me. It's quite possible I'm just dumb. Let me know if you object. I know I talked about this a couple months ago and nobody objected strongly, but I apparently never committed it.
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Sun, 11 Jun 2006 00:11:00 +0000 |
parents | e744943e749c |
children | d1fdde7cfc0a |
comparison
equal
deleted
inserted
replaced
13818:ec7848583492 | 13819:f41a515307a9 |
---|---|
4160 int ihrs, imin; | 4160 int ihrs, imin; |
4161 time(&t); | 4161 time(&t); |
4162 ihrs = (t - idle_secs) / 3600; | 4162 ihrs = (t - idle_secs) / 3600; |
4163 imin = ((t - idle_secs) / 60) % 60; | 4163 imin = ((t - idle_secs) / 60) % 60; |
4164 | 4164 |
4165 if (ihrs > 0) | 4165 idle = g_strdup_printf("%d:%02d", ihrs, imin); |
4166 idle = g_strdup_printf("%d:%02d", ihrs, imin); | |
4167 else | |
4168 idle = g_strdup_printf("%d", imin); | |
4169 } | 4166 } |
4170 } | 4167 } |
4171 | 4168 |
4172 if (gaim_presence_is_idle(presence)) | 4169 if (gaim_presence_is_idle(presence)) |
4173 { | 4170 { |