[pitivi] ruler.py: draw text next to ticks, rather than centered over them



commit 03b114f280ceaec17967167ebb1f04b0986777d5
Author: Brandon Lewis <brandon_lewis berkeley edu>
Date:   Tue Sep 8 11:42:58 2009 -0700

    ruler.py: draw text next to ticks, rather than centered over them

 pitivi/ui/ruler.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/pitivi/ui/ruler.py b/pitivi/ui/ruler.py
index e4afce2..073bf94 100644
--- a/pitivi/ui/ruler.py
+++ b/pitivi/ui/ruler.py
@@ -310,7 +310,7 @@ class ScaleRuler(gtk.Layout, Zoomable, Loggable):
             spacing = zoomRatio * interval
             offset = self.pixmap_offset % spacing
             seconds = self.pixelToNs(self.pixmap_offset)
-            paintpos = float(self.border) + 0.5
+            paintpos = float(self.border) + 2
             if offset > 0:
                 seconds += self.pixelToNs(spacing - offset)
                 paintpos += spacing - offset
@@ -327,7 +327,7 @@ class ScaleRuler(gtk.Layout, Zoomable, Loggable):
                         state = gtk.STATE_NORMAL
                     self.pixmap.draw_layout(
                         self.style.fg_gc[state],
-                        int(paintpos - textwidth / 2), 0, layout)
+                        int(paintpos), 0, layout)
                     paintpos += spacing
                     seconds += long(interval * gst.SECOND)
 



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