From 10aebd600a2ae3de5b90fb946527a1f26d02b7cd Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Sat, 21 Aug 2010 12:42:01 -0700 Subject: [PATCH] Add 'Owner' and 'Public' fields to the details tab --- deluge/ui/gtkui/details_tab.py | 7 ++- deluge/ui/gtkui/glade/main_window.glade | 76 ++++++++++++++++++++++++- 2 files changed, 79 insertions(+), 4 deletions(-) diff --git a/deluge/ui/gtkui/details_tab.py b/deluge/ui/gtkui/details_tab.py index f0b1fb099..411d38423 100644 --- a/deluge/ui/gtkui/details_tab.py +++ b/deluge/ui/gtkui/details_tab.py @@ -62,7 +62,9 @@ class DetailsTab(Tab): (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_comments"), str, ("comment",)) + (glade.get_widget("summary_comments"), str, ("comment",)), + (glade.get_widget("summary_owner"), str, ("owner",)), + (glade.get_widget("summary_public"), str, ("public",)) ] def update(self): @@ -79,7 +81,8 @@ class DetailsTab(Tab): # Get the torrent status status_keys = ["name", "total_size", "num_files", - "tracker", "save_path", "message", "hash", "comment"] + "tracker", "save_path", "message", "hash", "comment", "owner", + "public"] session = component.get("SessionProxy") session.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 5f1d5f638..c3fd1f6ad 100644 --- a/deluge/ui/gtkui/glade/main_window.glade +++ b/deluge/ui/gtkui/glade/main_window.glade @@ -1276,7 +1276,7 @@ True - 8 + 10 4 5 2 @@ -1542,6 +1542,57 @@ + + + True + 0 + 1 + <b>Owner:</b> + True + + + 8 + 9 + GTK_FILL + + + + + + True + 0 + 1 + <b>Public:</b> + True + + + 9 + 10 + GTK_FILL + + + + + + True + 0 + char + True + + + 1 + 2 + 8 + 9 + + + + + + + + + @@ -1554,6 +1605,27 @@ + + + + + + + + + True + 0 + char + True + + + 1 + 2 + 9 + 10 + + + @@ -2019,8 +2091,8 @@ True False - select-folder False + select-folder Select A Folder