From 65d5ec0c636bc2236ae33082850e4d54da2ad9cd Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Fri, 6 Aug 2010 15:17:27 +0000 Subject: [PATCH] (trunk gtk) small renderer cleanup from the #3488 patch --- gtk/torrent-cell-renderer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk/torrent-cell-renderer.c b/gtk/torrent-cell-renderer.c index 19eacdb13..4b120d9c1 100644 --- a/gtk/torrent-cell-renderer.c +++ b/gtk/torrent-cell-renderer.c @@ -170,7 +170,7 @@ getShortTransferString( const tr_torrent * tor, tr_formatter_speed_KBps( upStr, uploadSpeed_KBps, sizeof( upStr ) ); if( haveDown && haveUp ) - /* 1==down speed, 2==down arrow, 3==up speed, 4==down arrow */ + /* 1==down arrow, 2==down speed, 3==up arrow, 4==down speed */ g_snprintf( buf, buflen, _( "%1$s %2$s, %3$s %4$s" ), gtr_get_unicode_string( GTR_UNICODE_DOWN ), downStr, gtr_get_unicode_string( GTR_UNICODE_UP ), upStr ); @@ -182,7 +182,7 @@ getShortTransferString( const tr_torrent * tor, /* bandwidth speed + unicode arrow */ g_snprintf( buf, buflen, _( "%1$s %2$s" ), gtr_get_unicode_string( GTR_UNICODE_UP ), upStr ); - else if( tr_torrentHasMetadata( tor ) ) + else if( haveMeta ) /* the torrent isn't uploading or downloading */ g_strlcpy( buf, _( "Idle" ), buflen ); else