mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-17 22:06:27 +00:00
Removed unused code from interface.build_torrent_table().
This commit is contained in:
parent
37825effa1
commit
0016c39656
@ -441,11 +441,6 @@ class DelugeGTK:
|
|||||||
self.torrent_view.set_reorderable(True)
|
self.torrent_view.set_reorderable(True)
|
||||||
self.torrent_view.get_selection().set_mode(gtk.SELECTION_MULTIPLE)
|
self.torrent_view.get_selection().set_mode(gtk.SELECTION_MULTIPLE)
|
||||||
|
|
||||||
def size(column, cell, model, iter, data):
|
|
||||||
size = long(model.get_value(iter, data))
|
|
||||||
size_str = common.fsize(size)
|
|
||||||
cell.set_property('text', size_str)
|
|
||||||
|
|
||||||
def peer(column, cell, model, iter, data):
|
def peer(column, cell, model, iter, data):
|
||||||
c1, c2 = data
|
c1, c2 = data
|
||||||
a = int(model.get_value(iter, c1))
|
a = int(model.get_value(iter, c1))
|
||||||
@ -468,7 +463,6 @@ class DelugeGTK:
|
|||||||
ratio_str = "%.3f"%ratio
|
ratio_str = "%.3f"%ratio
|
||||||
cell.set_property('text', ratio_str)
|
cell.set_property('text', ratio_str)
|
||||||
|
|
||||||
|
|
||||||
## Initializes the columns for the torrent_view
|
## Initializes the columns for the torrent_view
|
||||||
(TORRENT_VIEW_COL_UID, TORRENT_VIEW_COL_QUEUE, TORRENT_VIEW_COL_STATUSICON, TORRENT_VIEW_COL_NAME,
|
(TORRENT_VIEW_COL_UID, TORRENT_VIEW_COL_QUEUE, TORRENT_VIEW_COL_STATUSICON, TORRENT_VIEW_COL_NAME,
|
||||||
TORRENT_VIEW_COL_SIZE, TORRENT_VIEW_COL_PROGRESS, TORRENT_VIEW_COL_STATUS,
|
TORRENT_VIEW_COL_SIZE, TORRENT_VIEW_COL_PROGRESS, TORRENT_VIEW_COL_STATUS,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user