[pitivi] viewer: Rename PitiviViewer to clarify what it represents



commit 091913788c1bf6f558d92f09f55358ae413685fe
Author: Alexandru Băluț <alexandru balut gmail com>
Date:   Mon Jan 13 13:57:59 2014 +0100

    viewer: Rename PitiviViewer to clarify what it represents

 pitivi/mainwindow.py |    4 ++--
 pitivi/viewer.py     |   13 ++++---------
 2 files changed, 6 insertions(+), 11 deletions(-)
---
diff --git a/pitivi/mainwindow.py b/pitivi/mainwindow.py
index 6327eb9..2ad9fb1 100644
--- a/pitivi/mainwindow.py
+++ b/pitivi/mainwindow.py
@@ -53,7 +53,7 @@ from pitivi.utils.loggable import Loggable
 from pitivi.utils.misc import in_devel, show_user_manual, path_from_uri
 from pitivi.utils.ui import info_name, beautify_time_delta, SPACING, \
     beautify_length
-from pitivi.viewer import PitiviViewer
+from pitivi.viewer import ViewerContainer
 
 
 GlobalSettings.addConfigOption("fileSupportEnabled",
@@ -422,7 +422,7 @@ class PitiviMainWindow(Gtk.Window, Loggable):
         self.context_tabs.set_current_page(0)
 
         # Viewer
-        self.viewer = PitiviViewer(instance, undock_action=self.undock_action)
+        self.viewer = ViewerContainer(instance, undock_action=self.undock_action)
         self.mainhpaned.pack2(self.viewer, resize=False, shrink=False)
 
         # Now, the lower part: the timeline
diff --git a/pitivi/viewer.py b/pitivi/viewer.py
index 75935e5..65a3e2b 100644
--- a/pitivi/viewer.py
+++ b/pitivi/viewer.py
@@ -69,16 +69,11 @@ GlobalSettings.addConfigOption("pointColor", section="viewer",
     default='49a0e0')
 
 
-class PitiviViewer(Gtk.VBox, Loggable):
+class ViewerContainer(Gtk.VBox, Loggable):
     """
-    A Widget to control and visualize a Pipeline
-
-    @ivar pipeline: The current pipeline
-    @type pipeline: L{Pipeline}
-    @ivar action: The action controlled by this Pipeline
-    @type action: L{ViewAction}
+    A wiget holding a viewer and the controls.
     """
-    __gtype_name__ = 'PitiviViewer'
+    __gtype_name__ = 'ViewerContainer'
     __gsignals__ = {
         "activate-playback-controls": (GObject.SignalFlags.RUN_LAST,
             None, (GObject.TYPE_BOOLEAN,)),
@@ -94,7 +89,7 @@ class PitiviViewer(Gtk.VBox, Loggable):
         self.system = app.system
 
         Loggable.__init__(self)
-        self.log("New PitiviViewer")
+        self.log("New ViewerContainer")
 
         self.pipeline = None
         self._tmp_pipeline = None  # Used for displaying a preview when trimming


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