diff src/gtkblist.c @ 12366:b0f518af7cad

[gaim-migrate @ 14670] Show the idle time before the prpl status text in the blist, and don't put the time in brackets. I think all this only applies to the big list. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Tue, 06 Dec 2005 00:07:14 +0000
parents 8dd086d0f2b3
children a4bb82fac67c
line wrap: on
line diff
--- a/src/gtkblist.c	Tue Dec 06 00:05:42 2005 +0000
+++ b/src/gtkblist.c	Tue Dec 06 00:07:14 2005 +0000
@@ -2970,9 +2970,9 @@
 			imin = ((t - idle_secs) / 60) % 60;
 
 			if (ihrs)
-				idletime = g_strdup_printf(_("Idle (%dh %02dm) "), ihrs, imin);
+				idletime = g_strdup_printf(_("Idle %dh %02dm "), ihrs, imin);
 			else
-				idletime = g_strdup_printf(_("Idle (%dm) "), imin);
+				idletime = g_strdup_printf(_("Idle %dm "), imin);
 		}
 		else
 			idletime = g_strdup(_("Idle "));
@@ -2985,25 +2985,25 @@
 		text =  g_strdup_printf("<span color='%s'>%s</span>\n"
 					"<span color='%s' size='smaller'>%s%s%s</span>",
 					dim_grey(), esc, dim_grey(),
-					statustext != NULL ? statustext : "",
+					idletime != NULL ? idletime : "",
 					(idletime != NULL && statustext != NULL) ? " - " : "",
-					idletime != NULL ? idletime : "");
+					statustext != NULL ? statustext : "");
 	} else if (statustext == NULL && idletime == NULL && GAIM_BUDDY_IS_ONLINE(b)) {
 		text = g_strdup(esc);
 	} else {
 		if (selected)
 			text = g_strdup_printf("%s\n"
 					       "<span size='smaller'>%s%s%s</span>", esc,
-					       statustext != NULL ? statustext :  "",
+					       idletime != NULL ? idletime : "",
 					       (idletime != NULL && statustext != NULL) ? " - " : "",
-					       idletime != NULL ? idletime : "");
+					       statustext != NULL ? statustext :  "");
 		else
 			text = g_strdup_printf("%s\n"
 					       "<span color='%s' size='smaller'>%s%s%s</span>", esc,
 					       dim_grey(),
-					       statustext != NULL ? statustext :  "",
+					       idletime != NULL ? idletime : "",
 					       (idletime != NULL && statustext != NULL) ? " - " : "",
-					       idletime != NULL ? idletime : "");
+					       statustext != NULL ? statustext :  "");
 	}
 	if (idletime)
 		g_free(idletime);