[pitivi] Viewer: Implement rewind/forward buttons.



commit ba24cef0dc387d94675bea92c18d808b53a3b84e
Author: Stéphane Maniaci <stephane maniaci gmail com>
Date:   Wed May 20 11:22:28 2009 +0200

    Viewer: Implement rewind/forward buttons.
---
 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 d42ebf7..3e1d960 100644
--- a/pitivi/ui/viewer.py
+++ b/pitivi/ui/viewer.py
@@ -396,7 +396,7 @@ class PitiviViewer(gtk.VBox, Loggable):
     ## Control gtk.Button callbacks
 
     def _rewindCb(self, unused_button):
-        raise NotImplementedError
+        self.seek(0)
 
     def _backCb(self, unused_button):
         self.seekRelative(-gst.SECOND)
@@ -408,7 +408,7 @@ class PitiviViewer(gtk.VBox, Loggable):
         self.seekRelative(gst.SECOND)
 
     def _forwardCb(self, unused_button):
-        raise NotImplementedError
+        self.seek(self.pipeline.getDuration() - 1)
 
     ## public methods for controlling playback
 



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