From 7b7e61485eda8973027e13fdb2590259b4837596 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Sun, 20 Sep 2015 15:39:04 +0100 Subject: [PATCH] [#2762] [GTKUI] Use correct column types for data --- deluge/ui/gtkui/torrentview.py | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/deluge/ui/gtkui/torrentview.py b/deluge/ui/gtkui/torrentview.py index 726d0da71..e455cf1e7 100644 --- a/deluge/ui/gtkui/torrentview.py +++ b/deluge/ui/gtkui/torrentview.py @@ -241,16 +241,13 @@ 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, - [gobject.TYPE_UINT64], + self.add_func_column(_("Size"), funcs.cell_data_size, [int], status_field=["total_wanted"]) - self.add_func_column(_("Downloaded"), funcs.cell_data_size, - [gobject.TYPE_UINT64], + self.add_func_column(_("Downloaded"), funcs.cell_data_size, [int], status_field=["all_time_download"], default=False) - self.add_func_column(_("Uploaded"), funcs.cell_data_size, - [gobject.TYPE_UINT64], + self.add_func_column(_("Uploaded"), funcs.cell_data_size, [int], status_field=["total_uploaded"], default=False) - self.add_func_column(_("Remaining"), funcs.cell_data_size, [gobject.TYPE_UINT64], + self.add_func_column(_("Remaining"), funcs.cell_data_size, [int], status_field=["total_remaining"], default=False) self.add_progress_column(_("Progress"), status_field=["progress", "state"], @@ -265,9 +262,9 @@ class TorrentView(ListView, component.Component): sort_func=seed_peer_column_sort, default=False) self.add_func_column(_("Seeds:Peers"), funcs.cell_data_ratio_seeds_peers, [float], status_field=["seeds_peers_ratio"], default=False) - self.add_func_column(_("Down Speed"), funcs.cell_data_speed_down, [float], + self.add_func_column(_("Down Speed"), funcs.cell_data_speed_down, [int], status_field=["download_payload_rate"]) - self.add_func_column(_("Up Speed"), funcs.cell_data_speed_up, [float], + self.add_func_column(_("Up Speed"), funcs.cell_data_speed_up, [int], status_field=["upload_payload_rate"]) self.add_func_column(_("Down Limit"), funcs.cell_data_speed_limit_down, [float], status_field=["max_download_speed"], default=False)