[pitivi] previewers: Make PreviewGenerator.manager private



commit 7e76597771c14a3f8eb9ca6434297b3a0256df75
Author: Alexandru Băluț <alexandru balut gmail com>
Date:   Thu Dec 12 18:36:04 2013 +0100

    previewers: Make PreviewGenerator.manager private

 pitivi/timeline/previewers.py |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/pitivi/timeline/previewers.py b/pitivi/timeline/previewers.py
index 6160809..8865d03 100644
--- a/pitivi/timeline/previewers.py
+++ b/pitivi/timeline/previewers.py
@@ -108,9 +108,9 @@ class PreviewGenerator(Signallable):
     those classes
     """
 
-    # We only wan 1 instance of PipelineQueue to be used for all the
-    # generators
-    manager = PreviewGeneratorManager()
+    # We only want one instance of PreviewGeneratorManager to be used for
+    # all the generators.
+    __manager = PreviewGeneratorManager()
 
     __signals__ = {
         "done": [],
@@ -118,6 +118,9 @@ class PreviewGenerator(Signallable):
     }
 
     def __init__(self, track_type):
+        """
+        @param track_type : GES.TrackType.*
+        """
         Signallable.__init__(self)
         self.track_type = track_type
 
@@ -131,7 +134,7 @@ class PreviewGenerator(Signallable):
         """
         Let the PreviewGeneratorManager control our execution
         """
-        self.manager.addPipeline(self)
+        PreviewGenerator.__manager.addPipeline(self)
 
 
 class VideoPreviewer(Clutter.ScrollActor, PreviewGenerator, Zoomable, Loggable):


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