/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to graphcell.py

  • Committer: Scott James Remnant
  • Date: 2005-10-17 05:02:51 UTC
  • Revision ID: scott@netsplit.com-20051017050251-b4acedb7603d3d26
Also increase the width of the lines in accordance with the font size.

Show diffs side-by-side

added added

removed removed

Lines of Context:
138
138
        ctx.rectangle(bg_area.x, bg_area.y, bg_area.width, bg_area.height)
139
139
        ctx.clip()
140
140
 
141
 
        ctx.set_line_width(2)
 
141
        box_size = self.box_size(widget)
 
142
 
 
143
        ctx.set_line_width(box_size / 10)
142
144
        ctx.set_line_cap(cairo.LINE_CAP_SQUARE)
143
145
 
144
 
        box_size = self.box_size(widget)
145
 
 
146
146
        # Draw lines into the cell
147
147
        for start, end, colour in self.in_lines:
148
148
            ctx.move_to(cell_area.x + box_size * start + box_size / 2,