mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-23 19:03:23 +00:00
Display 'total_wanted' instead of 'total_size' in Size column
This commit is contained in:
parent
063564655e
commit
753f624805
2 changed files with 9 additions and 1 deletions
|
@ -6,6 +6,7 @@ Deluge 0.9.04 - "1.0.0_RC4" (In Development)
|
||||||
* Fix selecting torrents when right-clicking on them, behaviour is now similar
|
* Fix selecting torrents when right-clicking on them, behaviour is now similar
|
||||||
to Nautilus
|
to Nautilus
|
||||||
* Fix new release check
|
* Fix new release check
|
||||||
|
* Display 'total_wanted' instead of 'total_size' in Size column
|
||||||
|
|
||||||
Deluge 0.9.03 - "1.0.0_RC3" (21 July 2008)
|
Deluge 0.9.03 - "1.0.0_RC3" (21 July 2008)
|
||||||
Core:
|
Core:
|
||||||
|
|
|
@ -38,6 +38,7 @@ pygtk.require('2.0')
|
||||||
import gtk, gtk.glade
|
import gtk, gtk.glade
|
||||||
import gettext
|
import gettext
|
||||||
import gobject
|
import gobject
|
||||||
|
from urlparse import urlparse
|
||||||
|
|
||||||
import deluge.common
|
import deluge.common
|
||||||
import deluge.component as component
|
import deluge.component as component
|
||||||
|
@ -129,7 +130,7 @@ class TorrentView(listview.ListView, component.Component):
|
||||||
self.add_func_column(_("Size"),
|
self.add_func_column(_("Size"),
|
||||||
listview.cell_data_size,
|
listview.cell_data_size,
|
||||||
[gobject.TYPE_UINT64],
|
[gobject.TYPE_UINT64],
|
||||||
status_field=["total_size"])
|
status_field=["total_wanted"])
|
||||||
self.add_progress_column(_("Progress"),
|
self.add_progress_column(_("Progress"),
|
||||||
status_field=["progress", "state"],
|
status_field=["progress", "state"],
|
||||||
col_types=[float, str],
|
col_types=[float, str],
|
||||||
|
@ -164,6 +165,7 @@ class TorrentView(listview.ListView, component.Component):
|
||||||
listview.cell_data_ratio,
|
listview.cell_data_ratio,
|
||||||
[float],
|
[float],
|
||||||
status_field=["distributed_copies"])
|
status_field=["distributed_copies"])
|
||||||
|
self.add_text_column(_("Tracker"), status_field=["tracker_host"])
|
||||||
|
|
||||||
# Set default sort column to #
|
# Set default sort column to #
|
||||||
self.liststore.set_sort_column_id(self.get_column_index("#"), gtk.SORT_ASCENDING)
|
self.liststore.set_sort_column_id(self.get_column_index("#"), gtk.SORT_ASCENDING)
|
||||||
|
@ -183,6 +185,8 @@ class TorrentView(listview.ListView, component.Component):
|
||||||
self.treeview.get_selection().connect("changed",
|
self.treeview.get_selection().connect("changed",
|
||||||
self.on_selection_changed)
|
self.on_selection_changed)
|
||||||
|
|
||||||
|
self.treeview.connect("drag-drop", self.on_drag_drop)
|
||||||
|
|
||||||
def start(self):
|
def start(self):
|
||||||
"""Start the torrentview"""
|
"""Start the torrentview"""
|
||||||
# We need to get the core session state to know which torrents are in
|
# We need to get the core session state to know which torrents are in
|
||||||
|
@ -467,3 +471,6 @@ class TorrentView(listview.ListView, component.Component):
|
||||||
component.get("ToolBar").update_buttons()
|
component.get("ToolBar").update_buttons()
|
||||||
component.get("MenuBar").update_menu()
|
component.get("MenuBar").update_menu()
|
||||||
|
|
||||||
|
def on_drag_drop(self, widget, drag_context, x, y, timestamp):
|
||||||
|
widget.stop_emission("drag-drop")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue