[pitivi] Don't make the project emit "selected-changed", we won't use it



commit 7bb7ed9eaea6c04ff2d69e2790528d4f36e7a67e
Author: Jean-FranÃois Fortin Tam <nekohayo gmail com>
Date:   Sat Jun 2 13:32:53 2012 -0400

    Don't make the project emit "selected-changed", we won't use it
    
    This removes some nonsensical cruft from the code.
    utils/timeline.py's setSelection emits "selection-changed" anyway

 pitivi/project.py           |    4 ++--
 pitivi/timeline/timeline.py |    2 --
 2 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/pitivi/project.py b/pitivi/project.py
index efaab6a..160e69d 100644
--- a/pitivi/project.py
+++ b/pitivi/project.py
@@ -479,13 +479,13 @@ class Project(Signallable, Loggable):
     @type loaded: C{bool}
 
     Signals:
-     - C{loaded} : The project is now fully loaded.
+     - C{settings-changed}: The project settings changed
+     - C{project-changed}: Modifications were made to the project
     """
 
     __signals__ = {
         "settings-changed": ['old', 'new'],
         "project-changed": [],
-        "selected-changed": ['element']
         }
 
     def __init__(self, name="", uri=None, **kwargs):
diff --git a/pitivi/timeline/timeline.py b/pitivi/timeline/timeline.py
index 5d60ccd..eef18ad 100644
--- a/pitivi/timeline/timeline.py
+++ b/pitivi/timeline/timeline.py
@@ -173,7 +173,6 @@ class TimelineCanvas(goocanvas.Canvas, Zoomable, Loggable):
         Zoomable.__init__(self)
         Loggable.__init__(self)
         self.app = instance
-        self._selected_sources = []
         self._tracks = []
         self.height = 0
 
@@ -342,7 +341,6 @@ class TimelineCanvas(goocanvas.Canvas, Zoomable, Loggable):
             if event.get_state() & gtk.gdk.CONTROL_MASK:
                 mode = 2
             selected = self._objectsUnderMarquee()
-            self.app.projectManager.current.emit("selected-changed", selected)
             self._timeline.selection.setSelection(self._objectsUnderMarquee(), mode)
         return True
 



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