From 2c615e468b5e41d8043dfc4555bd33c5279173e1 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Sun, 6 Feb 2011 03:04:14 +0000 Subject: [PATCH] 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(+) diff --git a/deluge/ui/gtkui/files_tab.py b/deluge/ui/gtkui/files_tab.py index c43d85b1b..af99c0c2b 100644 --- a/deluge/ui/gtkui/files_tab.py +++ b/deluge/ui/gtkui/files_tab.py @@ -161,6 +161,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 9e4b92dda..7f4ad1764 100644 --- a/deluge/ui/gtkui/peers_tab.py +++ b/deluge/ui/gtkui/peers_tab.py @@ -161,6 +161,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)