[pitivi] project: Avoid setting the selection field for a GESTimeline object



commit 92e752f8238c4824b4a1b74a9ee4e8feaf87abc2
Author: Alexandru Băluț <alexandru balut gmail com>
Date:   Tue Dec 17 16:30:56 2013 +0100

    project: Avoid setting the selection field for a GESTimeline object
    
    We set and use TimelineStage().selection = Selection().
    The GESTimeline().selection = Selection() field removed in this commit
    was simply not used anywhere.

 pitivi/project.py           |    2 --
 pitivi/timeline/elements.py |    4 ++--
 2 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/pitivi/project.py b/pitivi/project.py
index 7525501..09d37ea 100644
--- a/pitivi/project.py
+++ b/pitivi/project.py
@@ -45,7 +45,6 @@ from pitivi.utils.pipeline import Seeker
 from pitivi.utils.loggable import Loggable
 from pitivi.utils.signal import Signallable
 from pitivi.utils.pipeline import Pipeline
-from pitivi.utils.timeline import Selection
 from pitivi.utils.widgets import FractionWidget
 from pitivi.utils.ripple_update_group import RippleUpdateGroup
 from pitivi.utils.ui import frame_rates, audio_rates,\
@@ -874,7 +873,6 @@ class Project(Loggable, GES.Project):
             self.timeline.props.auto_transition = True
         self._calculateNbLoadingAssets()
 
-        self.timeline.selection = Selection()
         self.pipeline = Pipeline()
         self.pipeline.set_timeline(self.timeline)
 
diff --git a/pitivi/timeline/elements.py b/pitivi/timeline/elements.py
index 275784c..c5c1cdb 100644
--- a/pitivi/timeline/elements.py
+++ b/pitivi/timeline/elements.py
@@ -34,8 +34,8 @@ from datetime import datetime
 import weakref
 
 from gi.repository import Clutter, Gtk, GtkClutter, Cogl, GES, Gdk, Gst, GstController, GLib
-from pitivi.utils.timeline import Zoomable, EditingContext, Selection, SELECT, UNSELECT, SELECT_ADD, Selected
-from previewers import AudioPreviewer, VideoPreviewer, BORDER_WIDTH
+from pitivi.utils.timeline import Zoomable, EditingContext, SELECT, UNSELECT, SELECT_ADD, Selected
+from previewers import AudioPreviewer, VideoPreviewer
 
 import pitivi.configure as configure
 from pitivi.utils.ui import EXPANDED_SIZE, SPACING, KEYFRAME_SIZE, CONTROL_WIDTH


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