mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-09 09:58:39 +00:00
Tweaks to peers tab columns.
This commit is contained in:
parent
23a2111650
commit
f8c6151568
1 changed files with 12 additions and 12 deletions
|
@ -38,18 +38,18 @@ class PeersTabManager(object):
|
||||||
self.ip_column = dgtk.add_texticon_column(self.peer_view,
|
self.ip_column = dgtk.add_texticon_column(self.peer_view,
|
||||||
_("IP Address"), 1, 2)
|
_("IP Address"), 1, 2)
|
||||||
self.ip_column.set_sort_column_id(0)
|
self.ip_column.set_sort_column_id(0)
|
||||||
self.ip_column.set_fixed_width(120)
|
self.ip_column.set_fixed_width(140)
|
||||||
self.client = dgtk.add_text_column(self.peer_view, _("Client"), 3)
|
client = dgtk.add_text_column(self.peer_view, _("Client"), 3)
|
||||||
self.client.set_fixed_width(120)
|
client.set_fixed_width(120)
|
||||||
self.percent = dgtk.add_func_column(self.peer_view, _("Percent Complete"), percent,
|
percent = dgtk.add_func_column(self.peer_view, _("Percent Complete"),
|
||||||
4)
|
percent, 4)
|
||||||
self.percent.set_fixed_width(150)
|
percent.set_fixed_width(150)
|
||||||
self.down = dgtk.add_func_column(self.peer_view, _("Down Speed"),
|
down = dgtk.add_func_column(self.peer_view, _("Down Speed"),
|
||||||
dgtk.cell_data_speed, 5)
|
dgtk.cell_data_speed, 5)
|
||||||
self.down.set_fixed_width(115)
|
down.set_fixed_width(115)
|
||||||
self.up = dgtk.add_func_column(self.peer_view, _("Up Speed"),
|
up = dgtk.add_func_column(self.peer_view, _("Up Speed"),
|
||||||
dgtk.cell_data_speed, 6)
|
dgtk.cell_data_speed, 6)
|
||||||
self.up.set_fixed_width(115)
|
up.set_fixed_width(115)
|
||||||
|
|
||||||
def enable_flags(self):
|
def enable_flags(self):
|
||||||
self.show_flags = True
|
self.show_flags = True
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue