[pitivi] Fix offset of audio layers
- From: Jean-FranÃois Fortin Tam <jfft src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] Fix offset of audio layers
- Date: Sat, 21 Jul 2012 19:58:37 +0000 (UTC)
commit 00a88aa5e5a69ac868f547a932be12367f47bf7e
Author: Paul Lange <palango gmx de>
Date: Fri May 18 02:35:41 2012 -0500
Fix offset of audio layers
pitivi/timeline/timeline.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/pitivi/timeline/timeline.py b/pitivi/timeline/timeline.py
index 26c02db..4213da4 100644
--- a/pitivi/timeline/timeline.py
+++ b/pitivi/timeline/timeline.py
@@ -380,7 +380,7 @@ class TimelineCanvas(goocanvas.Canvas, Zoomable, Loggable):
def _request_size(self):
alloc = self.get_allocation()
self.set_bounds(0, 0, alloc.width, alloc.height)
- self._playhead.props.height = (self.height + SPACING)
+ self._playhead.props.height = self.height + SPACING
def _size_allocate_cb(self, widget, allocation):
self._request_size()
@@ -465,7 +465,7 @@ class TimelineCanvas(goocanvas.Canvas, Zoomable, Loggable):
height = 0
for i, track in enumerate(self._tracks):
track.set_simple_transform(0, height, 1, 0)
- height += track.height + TRACK_SPACING
+ height += track.height
self.height = height
self._request_size()
@@ -581,7 +581,7 @@ class TimelineControls(gtk.VBox, Loggable):
y += child.getHeight()
y += LAYER_SPACING
- return y
+ return y - LAYER_SPACING
class InfoStub(gtk.HBox, Loggable):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]