changeset 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 ec7848583492
children 6fd7425133fc
files src/gtkblist.c
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkblist.c	Sun Jun 11 00:06:02 2006 +0000
+++ b/src/gtkblist.c	Sun Jun 11 00:11:00 2006 +0000
@@ -4162,10 +4162,7 @@
 			ihrs = (t - idle_secs) / 3600;
 			imin = ((t - idle_secs) / 60) % 60;
 
-			if (ihrs > 0)
-				idle = g_strdup_printf("%d:%02d", ihrs, imin);
-			else
-				idle = g_strdup_printf("%d", imin);
+			idle = g_strdup_printf("%d:%02d", ihrs, imin);
 		}
 	}