From 44d94c72e01b143356bdf528c889d583e9d854d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Stadler?= Date: Wed, 26 Sep 2012 02:00:10 +0200 Subject: [PATCH] Hide some columns by default --- debug-viewer/GstDebugViewer/GUI/columns.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/debug-viewer/GstDebugViewer/GUI/columns.py b/debug-viewer/GstDebugViewer/GUI/columns.py index 11cdd561e8..2dc221d26a 100644 --- a/debug-viewer/GstDebugViewer/GUI/columns.py +++ b/debug-viewer/GstDebugViewer/GUI/columns.py @@ -573,6 +573,9 @@ class ViewColumnManager (ColumnManager): column_classes = (TimeColumn, LevelColumn, PidColumn, ThreadColumn, CategoryColumn, CodeColumn, FunctionColumn, ObjectColumn, MessageColumn,) + default_column_classes = (TimeColumn, LevelColumn, CategoryColumn, CodeColumn, + FunctionColumn, ObjectColumn, MessageColumn,) + def __init__ (self, state): ColumnManager.__init__ (self) @@ -592,7 +595,7 @@ class ViewColumnManager (ColumnManager): visible = self.state.columns_visible if not visible: - visible = self.column_classes + visible = self.default_column_classes for col_class in self.column_classes: action = self.get_toggle_action (col_class) action.props.active = (col_class in visible)