[pitivi/ges: 248/287] Remove the unused PlayheadController class



commit f70c31db96e1022c5c2260a91174de222187bb5e
Author: Jean-FranÃois Fortin Tam <nekohayo gmail com>
Date:   Thu Feb 9 14:59:17 2012 -0500

    Remove the unused PlayheadController class

 pitivi/timeline/timeline.py |   14 --------------
 1 files changed, 0 insertions(+), 14 deletions(-)
---
diff --git a/pitivi/timeline/timeline.py b/pitivi/timeline/timeline.py
index f8282d4..a9c4764 100644
--- a/pitivi/timeline/timeline.py
+++ b/pitivi/timeline/timeline.py
@@ -155,19 +155,6 @@ ui = '''
 '''
 
 
-class PlayheadController(Controller, Zoomable):
-
-    _cursor = PLAYHEAD_CURSOR
-
-    def __init__(self, *args, **kwargs):
-        Controller.__init__(self, *args, **kwargs)
-
-    def set_pos(self, item, pos):
-        x, y = pos
-        x += self._hadj.get_value()
-        self._canvas.app.current.seeker.seek(Zoomable.pixelToNs(x))
-
-
 class TimelineCanvas(goocanvas.Canvas, Zoomable, Loggable):
     """
         The goocanvas widget representing the timeline
@@ -218,7 +205,6 @@ class TimelineCanvas(goocanvas.Canvas, Zoomable, Loggable):
             fill_color_rgba=0x000000FF,
             stroke_color_rgba=0xFFFFFFFF,
             width=3)
-        self._playhead_controller = PlayheadController(self._playhead)
         self.connect("size-allocate", self._size_allocate_cb)
         root.connect("motion-notify-event", self._selectionDrag)
         root.connect("button-press-event", self._selectionStart)



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