From 265cc8afdfcd9a5eb2cd8a2b52afba077577788e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Stadler?= Date: Sun, 6 Nov 2011 13:19:55 +0100 Subject: [PATCH] columns: also auto size thread and pid column on zoom change --- debug-viewer/GstDebugViewer/GUI/columns.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/debug-viewer/GstDebugViewer/GUI/columns.py b/debug-viewer/GstDebugViewer/GUI/columns.py index cf23de035a..f0f7f3c274 100644 --- a/debug-viewer/GstDebugViewer/GUI/columns.py +++ b/debug-viewer/GstDebugViewer/GUI/columns.py @@ -604,9 +604,12 @@ class ViewColumnManager (ColumnManager): # Timestamp and log level columns are pretty much fixed size, so resize # them back to default on zoom change: + names = (TimeColumn.name, + LevelColumn.name, + PidColumn.name, + ThreadColumn.name) for column in self.columns: - if column.name in (TimeColumn.name, - LevelColumn.name): + if column.name in names: self.size_column (column) def size_column (self, column):