summaryrefslogtreecommitdiff
path: root/GstDebugViewer
diff options
context:
space:
mode:
authorRené Stadler <mail@renestadler.de>2011-11-06 12:49:43 +0100
committerRené Stadler <mail@renestadler.de>2011-11-06 12:49:43 +0100
commit3bf481fb03381def2564c2da011e0635b2518974 (patch)
treebf9fe84f6f16acfb64b577f2388002879b9448bc /GstDebugViewer
parent4c0dccac95231eefcfb62d4a596af535339a0b11 (diff)
Timeline: small cleanup
Diffstat (limited to 'GstDebugViewer')
-rw-r--r--GstDebugViewer/Plugins/Timeline.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/GstDebugViewer/Plugins/Timeline.py b/GstDebugViewer/Plugins/Timeline.py
index 37ffaee..26fa4ed 100644
--- a/GstDebugViewer/Plugins/Timeline.py
+++ b/GstDebugViewer/Plugins/Timeline.py
@@ -609,13 +609,18 @@ class TimelineWidget (gtk.DrawingArea):
yield sum ((level_counts[level] for level in levels))
level = Data.debug_level_info
- levels_prev = (Data.debug_level_trace,Data.debug_level_fixme,Data.debug_level_log, Data.debug_level_debug,)
+ levels_prev = (Data.debug_level_trace,
+ Data.debug_level_fixme,
+ Data.debug_level_log,
+ Data.debug_level_debug,)
ctx.set_source_rgb (*(colors[level][1].float_tuple ()))
self.__draw_graph (ctx, w, h, maximum,
list (cumulative_level_counts (level, *levels_prev)))
level = Data.debug_level_debug
- levels_prev = (Data.debug_level_trace,Data.debug_level_fixme,Data.debug_level_log,)
+ levels_prev = (Data.debug_level_trace,
+ Data.debug_level_fixme,
+ Data.debug_level_log,)
ctx.set_source_rgb (*(colors[level][1].float_tuple ()))
self.__draw_graph (ctx, w, h, maximum,
list (cumulative_level_counts (level, *levels_prev)))
@@ -659,7 +664,6 @@ class TimelineWidget (gtk.DrawingArea):
if not data:
return
- from operator import add
heights = [h * float (d) / maximum for d in data]
ctx.move_to (0, h)
for i in range (len (heights)):