summaryrefslogtreecommitdiff
path: root/GstDebugViewer
diff options
context:
space:
mode:
authorRené Stadler <mail@renestadler.de>2011-11-06 00:16:29 +0100
committerRené Stadler <mail@renestadler.de>2011-11-06 00:20:04 +0100
commitc8d7a36e70b83145da57b6ddfb9975f0bf629f72 (patch)
tree1af2be8ceb19cc7c3b48c301302e97f1b5347b35 /GstDebugViewer
parenta43b9f27f517219301433e4d36e5034810110b4d (diff)
Resize time and log level columns after zoom change
Diffstat (limited to 'GstDebugViewer')
-rw-r--r--GstDebugViewer/GUI/columns.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/GstDebugViewer/GUI/columns.py b/GstDebugViewer/GUI/columns.py
index 0579a41..98327c9 100644
--- a/GstDebugViewer/GUI/columns.py
+++ b/GstDebugViewer/GUI/columns.py
@@ -598,6 +598,22 @@ class ViewColumnManager (ColumnManager):
return ColumnManager.detach (self)
+ def set_zoom (self, scale):
+
+ ColumnManager.set_zoom (self, scale)
+
+ if self.view is None:
+ return
+
+ model = self.view.get_model ()
+
+ # Timestamp and log level columns are pretty much fixed size, so resize
+ # them back to default on zoom change:
+ for column in self.columns:
+ if column.name in (TimeColumn.name,
+ LevelColumn.name):
+ self.size_column (column, self.view, model)
+
def size_column (self, column, view, model):
if column.default_size is None: