mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
Hide some columns by default
This commit is contained in:
parent
1a4374809b
commit
44d94c72e0
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue