mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-26 10:05:19 +00:00
[GTKUI] Revert column type to uint64
* Tested fine on linux but on windows generates TypeError as this data is long in standalone mode.
This commit is contained in:
parent
774157f9b6
commit
07fa36aa58
@ -40,7 +40,7 @@ class TorrentviewTestCase(BaseTestCase):
|
||||
u'Tracker', u'Download Folder', u'Owner', u'Shared']
|
||||
default_liststore_columns = [bool, str, bool, int,
|
||||
str, str, # Name
|
||||
int, int, int, int,
|
||||
TYPE_UINT64, TYPE_UINT64, TYPE_UINT64, TYPE_UINT64,
|
||||
float, str, # Progress
|
||||
int, int, int, int, float, # Seeds, Peers
|
||||
int, int, float, float,
|
||||
|
@ -241,13 +241,16 @@ class TorrentView(ListView, component.Component):
|
||||
status_field=["state", "name"],
|
||||
function=funcs.cell_data_statusicon,
|
||||
default_sort=True)
|
||||
self.add_func_column(_("Size"), funcs.cell_data_size, [int],
|
||||
self.add_func_column(_("Size"), funcs.cell_data_size,
|
||||
[gobject.TYPE_UINT64],
|
||||
status_field=["total_wanted"])
|
||||
self.add_func_column(_("Downloaded"), funcs.cell_data_size, [int],
|
||||
self.add_func_column(_("Downloaded"), funcs.cell_data_size,
|
||||
[gobject.TYPE_UINT64],
|
||||
status_field=["all_time_download"], default=False)
|
||||
self.add_func_column(_("Uploaded"), funcs.cell_data_size, [int],
|
||||
self.add_func_column(_("Uploaded"), funcs.cell_data_size,
|
||||
[gobject.TYPE_UINT64],
|
||||
status_field=["total_uploaded"], default=False)
|
||||
self.add_func_column(_("Remaining"), funcs.cell_data_size, [int],
|
||||
self.add_func_column(_("Remaining"), funcs.cell_data_size, [gobject.TYPE_UINT64],
|
||||
status_field=["total_remaining"], default=False)
|
||||
self.add_progress_column(_("Progress"),
|
||||
status_field=["progress", "state"],
|
||||
|
Loading…
x
Reference in New Issue
Block a user