[pitivi] ruler.py: context parameter to draw functions no longer needed



commit a4635349355a92a7bd882c91ce13a3164f8f4a17
Author: Brandon Lewis <brandon_lewis berkeley edu>
Date:   Wed Sep 2 13:06:48 2009 -0700

    ruler.py: context parameter to draw functions no longer needed

 pitivi/ui/ruler.py |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/pitivi/ui/ruler.py b/pitivi/ui/ruler.py
index 601f787..0fa59a8 100644
--- a/pitivi/ui/ruler.py
+++ b/pitivi/ui/ruler.py
@@ -214,9 +214,8 @@ class ScaleRuler(gtk.Layout, Zoomable, Loggable):
                                          allocation.height)
             self.pixmap_old_allocated_width = allocation.width
 
-        context = self.pixmap.cairo_create()
-        self.drawBackground(context, allocation)
-        self.drawRuler(context, allocation)
+        self.drawBackground(allocation)
+        self.drawRuler(allocation)
 
     def setShadedDuration(self, duration):
         self.info("start/duration changed")
@@ -250,7 +249,7 @@ class ScaleRuler(gtk.Layout, Zoomable, Loggable):
     def getPixelPosition(self):
         return 0
 
-    def drawBackground(self, context, allocation):
+    def drawBackground(self, allocation):
         self.pixmap.draw_rectangle(
             self.style.bg_gc[gtk.STATE_NORMAL],
             True,
@@ -265,7 +264,7 @@ class ScaleRuler(gtk.Layout, Zoomable, Loggable):
                 self.getShadedDurationWidth(),
                 allocation.height)
 
-    def drawRuler(self, context, allocation):
+    def drawRuler(self, allocation):
         # there are 4 lengths of tick mark:
         # full height: largest increments, 1 minute
         # 3/4 height: 10 seconds



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