[pitivi: 17/27] Seek to the requested position when the user activates the timecode entry



commit 8c4e655c0fa6088e8fa384cf379f61f34f8a7960
Author: Jean-François Fortin Tam <nekohayo gmail com>
Date:   Fri Dec 24 17:03:22 2010 -0500

    Seek to the requested position when the user activates the timecode entry

 pitivi/ui/viewer.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/pitivi/ui/viewer.py b/pitivi/ui/viewer.py
index fc10727..fe2d37c 100644
--- a/pitivi/ui/viewer.py
+++ b/pitivi/ui/viewer.py
@@ -493,8 +493,8 @@ class PitiviViewer(gtk.VBox, Loggable):
 
     def _jumpToTimecodeCb(self, widget):
         nanoseconds = string_to_time(widget.get_text())
-        if nanoseconds:
-            pass # TODO: seek
+        if nanoseconds:  # The timecode has been correctly parsed
+            self.seek(nanoseconds)
 
     ## public methods for controlling playback
 



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