From 805629cc3516ce5c6c9352004937996387f7d6d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Stadler?= Date: Wed, 14 Nov 2007 15:49:03 +0200 Subject: [PATCH] Draw horizontal helper lines in frequency display --- debug-viewer/GstDebugViewer/Plugins/LineFrequency.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/debug-viewer/GstDebugViewer/Plugins/LineFrequency.py b/debug-viewer/GstDebugViewer/Plugins/LineFrequency.py index a2c9f697b5..f15ec229e4 100644 --- a/debug-viewer/GstDebugViewer/Plugins/LineFrequency.py +++ b/debug-viewer/GstDebugViewer/Plugins/LineFrequency.py @@ -155,6 +155,14 @@ class LineFrequencyWidget (gtk.DrawingArea): ctx.fill () ctx.new_path () + ctx.set_line_width (1.) + ctx.set_source_rgb (.96, .96, .96) + for i in range (h // 16): + y = i * 16 - .5 + ctx.move_to (0, y) + ctx.line_to (w, y) + ctx.stroke () + if self.sentinel_data is None and self.sentinel: if w > 15: self.logger.debug ("running sentinel for width %i", w)