[pitivi] previewers: Use a constant for the audio previewer height



commit 8708bbeec210037b462e87ae6156199b98884792
Author: Alexandru Băluț <alexandru balut gmail com>
Date:   Tue Jan 7 23:13:46 2014 +0100

    previewers: Use a constant for the audio previewer height

 pitivi/timeline/previewers.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/pitivi/timeline/previewers.py b/pitivi/timeline/previewers.py
index 8876026..be49b94 100644
--- a/pitivi/timeline/previewers.py
+++ b/pitivi/timeline/previewers.py
@@ -839,14 +839,14 @@ class AudioPreviewer(Clutter.Actor, PreviewGenerator, Zoomable, Loggable):
         if self.width < 0:  # We've been called at a moment where size was updated but not scroll_point.
             return
 
-        self.canvas.set_size(self.width, 65)
+        self.canvas.set_size(self.width, EXPANDED_SIZE)
         Clutter.Actor.set_size(self, self.width, EXPANDED_SIZE)
         self.set_position(start, self.props.y)
         self.canvas.invalidate()
 
     def _prepareSamples(self):
         # Let's go mono.
-        if (len(self.peaks) > 1):
+        if len(self.peaks) > 1:
             samples = (numpy.array(self.peaks[0]) + numpy.array(self.peaks[1])) / 2
         else:
             samples = numpy.array(self.peaks[0])


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]