summaryrefslogtreecommitdiff
path: root/GstDebugViewer
diff options
context:
space:
mode:
Diffstat (limited to 'GstDebugViewer')
-rw-r--r--GstDebugViewer/GUI/columns.py10
-rw-r--r--GstDebugViewer/GUI/window.py3
2 files changed, 11 insertions, 2 deletions
diff --git a/GstDebugViewer/GUI/columns.py b/GstDebugViewer/GUI/columns.py
index f0f7f3c..96ea98c 100644
--- a/GstDebugViewer/GUI/columns.py
+++ b/GstDebugViewer/GUI/columns.py
@@ -457,6 +457,16 @@ class ColumnManager (Common.GUI.Manager):
self.zoom = scale
+ def set_base_time (self, base_time):
+
+ try:
+ time_column = self.find_item (name = TimeColumn.name)
+ except KeyError:
+ return
+
+ time_column.set_base_time (base_time)
+ self.size_column (time_column)
+
def get_toggle_action (self, column_class):
action_name = "show-%s-column" % (column_class.name,)
diff --git a/GstDebugViewer/GUI/window.py b/GstDebugViewer/GUI/window.py
index 6372492..2a82aa9 100644
--- a/GstDebugViewer/GUI/window.py
+++ b/GstDebugViewer/GUI/window.py
@@ -674,8 +674,7 @@ class Window (object):
def handle_set_base_time_action_activate (self, action):
row = self.get_active_line ()
- time_column = self.column_manager.find_item (name = "time")
- time_column.set_base_time (row[LogModelBase.COL_TIME])
+ self.column_manager.set_base_time (row[LogModelBase.COL_TIME])
def handle_hide_log_level_action_activate (self, action):