[Pkg-bazaar-commits] ./bzr-gtk/unstable r9: Fix the busted font size stuff, and then increase the sizes a bit to
Scott James Remnant
scott at netsplit.com
Fri Apr 10 07:15:13 UTC 2009
------------------------------------------------------------
revno: 9
committer: Scott James Remnant <scott at netsplit.com>
timestamp: Mon 2005-10-17 08:54:28 +0100
message:
Fix the busted font size stuff, and then increase the sizes a bit to
compensate
modified:
graphcell.py
-------------- next part --------------
=== modified file 'graphcell.py'
--- a/graphcell.py 2005-10-17 05:02:51 +0000
+++ b/graphcell.py 2005-10-17 07:54:28 +0000
@@ -72,9 +72,9 @@
metrics = pango_ctx.get_metrics(font_desc)
ascent = pango.PIXELS(metrics.get_ascent())
- descent = pango.PIXELS(metrics.get_ascent())
+ descent = pango.PIXELS(metrics.get_descent())
- self._box_size = ascent + descent
+ self._box_size = ascent + descent + 6
return self._box_size
def set_colour(self, ctx, colour, bg, fg):
@@ -140,7 +140,7 @@
box_size = self.box_size(widget)
- ctx.set_line_width(box_size / 10)
+ ctx.set_line_width(box_size / 8)
ctx.set_line_cap(cairo.LINE_CAP_SQUARE)
# Draw lines into the cell
@@ -188,7 +188,7 @@
(column, colour) = self.node
ctx.arc(cell_area.x + box_size * column + box_size / 2,
cell_area.y + cell_area.height / 2,
- box_size / 5, 0, 2 * math.pi)
+ box_size / 4, 0, 2 * math.pi)
self.set_colour(ctx, colour, 0.0, 0.5)
ctx.stroke_preserve()
More information about the Pkg-bazaar-commits
mailing list