[pitivi] Don't display the duration of the current pipeline in the viewer.



commit 5fa70ecfb56af88b81072943ee6c161784762c89
Author: Alessandro Decina <alessandro d gmail com>
Date:   Wed Aug 19 17:51:48 2009 +0200

    Don't display the duration of the current pipeline in the viewer.
    
    The viewer used to display a "position / duration" label. This change removes
    the duration part, thus halving the horizontal space required for the viewer
    controls.
    The duration is still displayed in the sourcelist when playing a clip and in
    the ruler when working with the timeline.

 pitivi/ui/viewer.py |   13 ++-----------
 1 files changed, 2 insertions(+), 11 deletions(-)
---
diff --git a/pitivi/ui/viewer.py b/pitivi/ui/viewer.py
index 4f7fe75..c55c001 100644
--- a/pitivi/ui/viewer.py
+++ b/pitivi/ui/viewer.py
@@ -258,9 +258,8 @@ class PitiviViewer(gtk.VBox, Loggable):
 
         # current time
         self.timelabel = gtk.Label()
-        self.timelabel.set_markup("<tt>00:00:00.000 / --:--:--.---</tt>")
+        self.timelabel.set_markup("<tt>00:00:00.000</tt>")
         self.timelabel.set_alignment(1.0, 0.5)
-        self.timelabel.set_padding(5, 5)
         bbox.pack_start(self.timelabel, expand=False, padding=10)
         self._haveUI = True
 
@@ -361,12 +360,7 @@ class PitiviViewer(gtk.VBox, Loggable):
         self.info("value:%s, frame:%d", gst.TIME_ARGS(value), frame)
         self.current_time = value
         self.current_frame = frame
-        try:
-            duration = self.pipeline.getDuration()
-        except:
-            duration = gst.CLOCK_TIME_NONE
-        self.timelabel.set_markup("<tt>%s / %s</tt>" % (time_to_string(value),
-                                                        time_to_string(duration)))
+        self.timelabel.set_markup("<tt>%s</tt>" % time_to_string(value))
         if not self.moving_slider:
             self.posadjust.set_value(float(value))
         return False
@@ -381,9 +375,6 @@ class PitiviViewer(gtk.VBox, Loggable):
             self.posadjust.set_value(float(duration))
         self.posadjust.upper = float(duration)
 
-        self.timelabel.set_markup("<tt>%s / %s</tt>" % (time_to_string(self.current_time),
-                                                        time_to_string(duration)))
-
         if duration == 0:
             self._setUiActive(False)
         else:



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