Module: deluge
Branch: master
Commit: 10aebd600a2ae3de5b90fb946527a1f26d02b7cd

Author: Andrew Resch <[email protected]>
Date:   Sat Aug 21 12:42:01 2010 -0700

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 f0b1fb0..411d384 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 5f1d5f6..c3fd1f6 100644
--- a/deluge/ui/gtkui/glade/main_window.glade
+++ b/deluge/ui/gtkui/glade/main_window.glade
@@ -1276,7 +1276,7 @@
                     <child>
                       <widget class="GtkTable" id="table9">
                         <property name="visible">True</property>
-                        <property name="n_rows">8</property>
+                        <property name="n_rows">10</property>
                         <property name="n_columns">4</property>
                         <property name="column_spacing">5</property>
                         <property name="row_spacing">2</property>
@@ -1543,6 +1543,63 @@
                           </packing>
                         </child>
                         <child>
+                          <widget class="GtkLabel" id="label23">
+                            <property name="visible">True</property>
+                            <property name="xalign">0</property>
+                            <property name="ypad">1</property>
+                            <property name="label" 
translatable="yes">&lt;b&gt;Owner:&lt;/b&gt;</property>
+                            <property name="use_markup">True</property>
+                          </widget>
+                          <packing>
+                            <property name="top_attach">8</property>
+                            <property name="bottom_attach">9</property>
+                            <property name="x_options">GTK_FILL</property>
+                            <property name="y_options"></property>
+                          </packing>
+                        </child>
+                        <child>
+                          <widget class="GtkLabel" id="label24">
+                            <property name="visible">True</property>
+                            <property name="xalign">0</property>
+                            <property name="ypad">1</property>
+                            <property name="label" 
translatable="yes">&lt;b&gt;Public:&lt;/b&gt;</property>
+                            <property name="use_markup">True</property>
+                          </widget>
+                          <packing>
+                            <property name="top_attach">9</property>
+                            <property name="bottom_attach">10</property>
+                            <property name="x_options">GTK_FILL</property>
+                            <property name="y_options"></property>
+                          </packing>
+                        </child>
+                        <child>
+                          <widget class="GtkLabel" id="summary_owner">
+                            <property name="visible">True</property>
+                            <property name="xalign">0</property>
+                            <property name="wrap_mode">char</property>
+                            <property name="selectable">True</property>
+                          </widget>
+                          <packing>
+                            <property name="left_attach">1</property>
+                            <property name="right_attach">2</property>
+                            <property name="top_attach">8</property>
+                            <property name="bottom_attach">9</property>
+                            <property name="y_options"></property>
+                          </packing>
+                        </child>
+                        <child>
+                          <placeholder/>
+                        </child>
+                        <child>
+                          <placeholder/>
+                        </child>
+                        <child>
+                          <placeholder/>
+                        </child>
+                        <child>
+                          <placeholder/>
+                        </child>
+                        <child>
                           <placeholder/>
                         </child>
                         <child>
@@ -1554,6 +1611,21 @@
                         <child>
                           <placeholder/>
                         </child>
+                        <child>
+                          <widget class="GtkLabel" id="summary_public">
+                            <property name="visible">True</property>
+                            <property name="xalign">0</property>
+                            <property name="wrap_mode">char</property>
+                            <property name="selectable">True</property>
+                          </widget>
+                          <packing>
+                            <property name="left_attach">1</property>
+                            <property name="right_attach">2</property>
+                            <property name="top_attach">9</property>
+                            <property name="bottom_attach">10</property>
+                            <property name="y_options"></property>
+                          </packing>
+                        </child>
                       </widget>
                     </child>
                   </widget>
@@ -2019,8 +2091,8 @@
                                           <widget class="GtkFileChooserButton" 
id="filechooser_move_completed">
                                             <property 
name="visible">True</property>
                                             <property 
name="sensitive">False</property>
-                                            <property 
name="action">select-folder</property>
                                             <property 
name="local_only">False</property>
+                                            <property 
name="action">select-folder</property>
                                             <property name="title" 
translatable="yes">Select A Folder</property>
                                           </widget>
                                           <packing>

-- 
You received this message because you are subscribed to the Google Groups 
"deluge-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en.

Reply via email to