[pitivi: 13/27] Use a GTK Entry widget instead of a label for displaying the timecode



commit f3674cf907a6c6883ef0ddf22646b8b87a39e39c
Author: Jean-François Fortin Tam <nekohayo gmail com>
Date:   Fri Dec 24 14:20:29 2010 -0500

    Use a GTK Entry widget instead of a label for displaying the timecode

 pitivi/ui/viewer.py |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/pitivi/ui/viewer.py b/pitivi/ui/viewer.py
index 58e3a3b..9335af9 100644
--- a/pitivi/ui/viewer.py
+++ b/pitivi/ui/viewer.py
@@ -327,9 +327,8 @@ class PitiviViewer(gtk.VBox, Loggable):
         bbox.pack_start(self.goToEnd_button, expand=False)
 
         # current time
-        self.timelabel = gtk.Label()
-        self.timelabel.set_markup("<tt>00:00:00.000</tt>")
-        self.timelabel.set_alignment(1.0, 0.5)
+        self.timelabel = gtk.Entry()
+        self.timelabel.set_text("00:00:00.000")
         bbox.pack_start(self.timelabel, expand=False, padding=10)
         self._haveUI = True
 
@@ -444,7 +443,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
-        self.timelabel.set_markup("<tt>%s</tt>" % time_to_string(value))
+        self.timelabel.set_text("%s" % time_to_string(value))
         if not self.moving_slider:
             self.posadjust.set_value(float(value))
         return False



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