[pitivi] Fix 'move to last position' for audio layers
- From: Jean-FranÃois Fortin Tam <jfft src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] Fix 'move to last position' for audio layers
- Date: Sat, 21 Jul 2012 20:02:13 +0000 (UTC)
commit 09c0cdc42800e4543e8a676acab758297d0a5db0
Author: Paul Lange <palango gmx de>
Date: Sun Jul 15 22:32:36 2012 +0200
Fix 'move to last position' for audio layers
pitivi/timeline/layer.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/timeline/layer.py b/pitivi/timeline/layer.py
index d90d194..bdcdf03 100644
--- a/pitivi/timeline/layer.py
+++ b/pitivi/timeline/layer.py
@@ -219,7 +219,10 @@ class BaseLayerControl(gtk.VBox, Loggable):
elif step == -2:
index = 0
else:
- index = self.layer.get_timeline().get_layers()
+ index = len(self.layer.get_timeline().get_layers())
+ # if audio, set last position
+ if type(self) == AudioLayerControl:
+ index *= 2
self._app.gui.timeline_ui.controls.moveControlWidget(self, index)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]