diff --git a/ChangeLog b/ChangeLog index 707c0627f..bab06240d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,7 @@ ==== Core ==== * Implement new RPC protocol DelugeRPC replacing XMLRPC * Move to a twisted framework + * Add an 'Error' filter for Trackers to show trackers that currently have a tracker error ==== GtkUI ==== * Remove SignalReceiver @@ -12,7 +13,7 @@ * Move over to using Twisted-Web for the webserver. * Move to only AJAX interface built upon Ext-JS. -=== Deluge 1.1.0 (Released) === +=== Deluge 1.1.0 - "Time gas!" (10 January 2009) === ==== Core ==== * Implement #79 ability to change outgoing port range * Implement #296 ability to change peer TOS byte diff --git a/deluge/core/torrent.py b/deluge/core/torrent.py index 126acf4aa..2b85eaec1 100644 --- a/deluge/core/torrent.py +++ b/deluge/core/torrent.py @@ -600,6 +600,14 @@ class Torrent: "upload_payload_rate": self.status.upload_payload_rate } + def ti_comment(): + if self.handle.has_metadata(): + try: + return self.torrent_info.comment().decode("utf8", "ignore") + except UnicodeDecodeError: + return self.torrent_info.comment() + return "" + def ti_name(): if self.handle.has_metadata(): try: @@ -630,6 +638,7 @@ class Torrent: return 0 fns = { + "comment": ti_comment, "eta": self.get_eta, "file_progress": self.get_file_progress, "is_seed": self.handle.is_seed, diff --git a/deluge/ui/gtkui/details_tab.py b/deluge/ui/gtkui/details_tab.py index b07020e18..2e8fbab76 100644 --- a/deluge/ui/gtkui/details_tab.py +++ b/deluge/ui/gtkui/details_tab.py @@ -50,7 +50,8 @@ class DetailsTab(Tab): (glade.get_widget("summary_tracker"), None, ("tracker",)), (glade.get_widget("summary_torrent_path"), None, ("save_path",)), (glade.get_widget("summary_message"), str, ("message",)), - (glade.get_widget("summary_hash"), str, ("hash",)) + (glade.get_widget("summary_hash"), str, ("hash",)), + (glade.get_widget("summary_comments"), str, ("comment",)) ] def update(self): @@ -67,7 +68,7 @@ class DetailsTab(Tab): # Get the torrent status status_keys = ["name", "total_size", "num_files", - "tracker", "save_path", "message", "hash"] + "tracker", "save_path", "message", "hash", "comment"] client.core.get_torrent_status(selected, status_keys).addCallback(self._on_get_torrent_status) diff --git a/deluge/ui/gtkui/glade/main_window.glade b/deluge/ui/gtkui/glade/main_window.glade index a2d934321..5a0e854a5 100644 --- a/deluge/ui/gtkui/glade/main_window.glade +++ b/deluge/ui/gtkui/glade/main_window.glade @@ -317,7 +317,7 @@ - False + True @@ -329,17 +329,13 @@ - False + True True - - False - False - @@ -352,7 +348,7 @@ - False + True @@ -366,17 +362,13 @@ - False + True True - - False - False - @@ -389,7 +381,7 @@ - False + True @@ -403,7 +395,7 @@ - False + True @@ -411,10 +403,6 @@ True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - - False - False - @@ -426,7 +414,7 @@ - False + True @@ -439,7 +427,7 @@ - False + True @@ -482,7 +470,6 @@ True True - True True False @@ -1253,8 +1240,9 @@ True - 7 + 8 4 + 5 2 @@ -1268,6 +1256,36 @@ + + + True + 0 + PANGO_WRAP_CHAR + True + + + 1 + 4 + 5 + 6 + + + + + + True + 0 + 1 + <b>Comments:</b> + True + + + 5 + 6 + GTK_FILL + + + True @@ -1339,8 +1357,8 @@ 1 4 - 6 - 7 + 7 + 8 @@ -1353,8 +1371,8 @@ True - 6 - 7 + 7 + 8 GTK_FILL @@ -1465,8 +1483,8 @@ True - 5 - 6 + 6 + 7 GTK_FILL @@ -1481,8 +1499,8 @@ 1 4 - 5 - 6 + 6 + 7