[pitivi/ges: 18/287] Make the layers be represented accurately



commit fe27cfad9bd5253cf2dd7593a5979eeab5d6596f
Author: Mathieu Duponchelle <seeed laposte net>
Date:   Sun Aug 28 20:56:42 2011 +0200

    Make the layers be represented accurately

 pitivi/ui/track.py |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/pitivi/ui/track.py b/pitivi/ui/track.py
index 11bd2c2..5804d3d 100644
--- a/pitivi/ui/track.py
+++ b/pitivi/ui/track.py
@@ -86,13 +86,13 @@ class Track(goocanvas.Group, Zoomable):
         max_priority = 0
         for track_object in track_objects :
             if isinstance (track_object, ges.TrackAudioTestSource):
-                break
+                continue
             if isinstance (track_object, ges.TrackVideoTestSource):
-                break
-            priority = track_object.get_priority()
+                continue
+            priority = track_object.get_timeline_object().get_layer().get_property("priority")
             if priority > max_priority:
                 max_priority = priority
-        self.track.max_priority = (max_priority) / 10
+        self.track.max_priority = max_priority
         if self.track.max_priority < 0:
             self.track.max_priority = 0
         if self._expanded:



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