1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-24 08:43:27 +00:00

(gtk) #1015: only count selected files in the progress bar

This commit is contained in:
Charles Kerr 2008-06-11 13:41:56 +00:00
parent 44a675ab0f
commit 51aa583d60

View file

@ -453,9 +453,7 @@ torrent_cell_renderer_render( GtkCellRenderer * cell,
my_cell.height = p->bar_height;
if( 1 )
{
const double havePercent = ( torStat->haveValid + torStat->haveUnchecked )
/ (double)info->totalSize;
g_object_set( p->progress_renderer, "value", (int)(havePercent*100.0),
g_object_set( p->progress_renderer, "value", (int)(torStat->percentDone*100.0),
"text", "",
NULL );
gtk_cell_renderer_render( p->progress_renderer,