[pitivi] Better style for divion n the timeline ui



commit ba5b60b51614be052e6bf4ad59deb76991fce862
Author: Thibault Saunier <tsaunier gnome org>
Date:   Mon Jul 12 22:25:43 2010 -0400

    Better style for divion n the timeline ui

 pitivi/ui/timeline.py |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/pitivi/ui/timeline.py b/pitivi/ui/timeline.py
index 9ea4c65..cc1b9c0 100644
--- a/pitivi/ui/timeline.py
+++ b/pitivi/ui/timeline.py
@@ -451,9 +451,9 @@ class Timeline(gtk.Table, Loggable, Zoomable):
     def _getPriority(self, y, effectTuple):
         #TODO find a way to get the good priority for audio effects
         if effectTuple == VIDEO_EFFECT_LIST:
-            priority = y / (LAYER_HEIGHT_EXPANDED + TRACK_SPACING + LAYER_SPACING)
+            priority = y // (LAYER_HEIGHT_EXPANDED + TRACK_SPACING + LAYER_SPACING)
         else:
-            priority = y / (LAYER_HEIGHT_EXPANDED + TRACK_SPACING + LAYER_SPACING)
+            priority = y // (LAYER_HEIGHT_EXPANDED + TRACK_SPACING + LAYER_SPACING)
 
         return priority
 
@@ -468,6 +468,7 @@ class Timeline(gtk.Table, Loggable, Zoomable):
             try:
                 for timeline_obj, track_obj in self._temp_effect:
                     timeline_obj.removeTrackObject(track_obj)
+                    track_obj.track.removeTrackObject(track_obj)
             finally:
                 self._temp_effect = None
 



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