[Pkg-bazaar-commits] ./bzr-gtk/unstable r6: Also increase the width of the lines in accordance with the font size.

Scott James Remnant scott at netsplit.com
Fri Apr 10 07:15:06 UTC 2009


------------------------------------------------------------
revno: 6
committer: Scott James Remnant <scott at netsplit.com>
timestamp: Mon 2005-10-17 06:02:51 +0100
message:
  Also increase the width of the lines in accordance with the font size.
modified:
  graphcell.py
-------------- next part --------------
=== modified file 'graphcell.py'
--- a/graphcell.py	2005-10-17 01:07:49 +0000
+++ b/graphcell.py	2005-10-17 05:02:51 +0000
@@ -138,11 +138,11 @@
         ctx.rectangle(bg_area.x, bg_area.y, bg_area.width, bg_area.height)
         ctx.clip()
 
-        ctx.set_line_width(2)
+        box_size = self.box_size(widget)
+
+        ctx.set_line_width(box_size / 10)
         ctx.set_line_cap(cairo.LINE_CAP_SQUARE)
 
-        box_size = self.box_size(widget)
-
         # Draw lines into the cell
         for start, end, colour in self.in_lines:
             ctx.move_to(cell_area.x + box_size * start + box_size / 2,



More information about the Pkg-bazaar-commits mailing list