Module: deluge
Branch: master
Commit: 053700342a2c76be06fef519fa38191ede09c968

Author: Calum Lind <[email protected]>
Date:   Sun Feb  6 03:04:14 2011 +0000

Fix #1336 - Uneeded Horizontal Scrollbar shows in Files&Peers Tab

---

 deluge/ui/gtkui/files_tab.py |    2 ++
 deluge/ui/gtkui/peers_tab.py |    2 ++
 2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/deluge/ui/gtkui/files_tab.py b/deluge/ui/gtkui/files_tab.py
index 1fc0ccb..b985ff1 100644
--- a/deluge/ui/gtkui/files_tab.py
+++ b/deluge/ui/gtkui/files_tab.py
@@ -164,6 +164,8 @@ class FilesTab(Tab):
         column.set_resizable(True)
         column.set_expand(False)
         column.set_min_width(100)
+        # Bugfix: Last column needs max_width set to stop scrollbar appearing
+        column.set_max_width(200)
         column.set_reorderable(True)
         self.listview.append_column(column)
 
diff --git a/deluge/ui/gtkui/peers_tab.py b/deluge/ui/gtkui/peers_tab.py
index 9ac5a6d..20cdfbf 100644
--- a/deluge/ui/gtkui/peers_tab.py
+++ b/deluge/ui/gtkui/peers_tab.py
@@ -164,6 +164,8 @@ class PeersTab(Tab):
         column.set_resizable(True)
         column.set_expand(False)
         column.set_min_width(50)
+        # Bugfix: Last column needs max_width set to stop scrollbar appearing
+        column.set_max_width(150)
         column.set_reorderable(True)
         self.listview.append_column(column)
 

-- 
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