#1494 - Add Downloaded and Uploaded columns to torrent view

This commit is contained in:
alderz 2011-02-04 23:39:25 +00:00 committed by Calum Lind
parent cea6c817df
commit 79869faa53
1 changed files with 6 additions and 0 deletions

View File

@ -211,6 +211,12 @@ class TorrentView(listview.ListView, component.Component):
self.add_func_column(_("Size"), listview.cell_data_size,
[gobject.TYPE_UINT64],
status_field=["total_wanted"])
self.add_func_column(_("Downloaded"), listview.cell_data_size,
[gobject.TYPE_UINT64],
status_field=["all_time_download"])
self.add_func_column(_("Uploaded"), listview.cell_data_size,
[gobject.TYPE_UINT64],
status_field=["total_uploaded"])
self.add_progress_column(_("Progress"),
status_field=["progress", "state"],
col_types=[float, str],