[pitivi] ui/timeline.py: Be logical in _getTimelineObjectUnderMouse!
- From: Edward Hervey <edwardrv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] ui/timeline.py: Be logical in _getTimelineObjectUnderMouse!
- Date: Wed, 22 Sep 2010 13:47:03 +0000 (UTC)
commit 80885cb1fe29983a83d8383864becc526945c1f0
Author: Thibault Saunier <tsaunier gnome org>
Date: Wed Sep 1 15:08:35 2010 +0200
ui/timeline.py: Be logical in _getTimelineObjectUnderMouse!
pitivi/ui/timeline.py | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/pitivi/ui/timeline.py b/pitivi/ui/timeline.py
index 11dafac..15021c8 100644
--- a/pitivi/ui/timeline.py
+++ b/pitivi/ui/timeline.py
@@ -513,11 +513,8 @@ class Timeline(gtk.Table, Loggable, Zoomable):
tracks = [obj for obj in items_in_area[0]]
track_objects = [obj for obj in items_in_area[1]]
for track_object in track_objects:
- for timeline_obj in self.timeline.timeline_objects:
- for track in tracks:
- if track_object in timeline_obj.track_objects and\
- type(stream) == type(track.stream):
- timeline_objs.append(timeline_obj)
+ if (type(stream) == type(track_object.stream)):
+ timeline_objs.append(track_object.timeline_object)
return timeline_objs
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]