/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 branchview/graphcell.py

  • Committer: Daniel Schierbeck
  • Date: 2008-04-02 23:11:38 UTC
  • mto: This revision was merged to the branch mainline in revision 481.
  • Revision ID: daniel.schierbeck@gmail.com-20080402231138-udfjc1oz5a52kssp
Removed white breaks between joining lines.

Show diffs side-by-side

added added

removed removed

Lines of Context:
149
149
        box_size = self.box_size(widget)
150
150
 
151
151
        ctx.set_line_width(box_size / 8)
152
 
        ctx.set_line_cap(cairo.LINE_CAP_ROUND)
 
152
        ctx.set_line_cap(cairo.LINE_CAP_BUTT)
153
153
 
154
154
        # Draw lines into the cell
155
155
        for start, end, colour in self.in_lines:
197
197
            ctx.line_to(x, mid - height / 3)
198
198
            ctx.move_to(x, mid - height / 6)
199
199
            ctx.line_to(x, mid - height / 6)
 
200
 
200
201
        else:
201
202
            startx = cell_area.x + box_size * start + box_size / 2
202
203
            endx = cell_area.x + box_size * end + box_size / 2
204
205
            ctx.move_to(startx, mid - height / 2)
205
206
            
206
207
            if start - end == 0 :
207
 
                ctx.line_to(endx, mid + height / 2)
 
208
                ctx.line_to(endx, mid + height / 2 + 1)
208
209
            else:
209
210
                ctx.curve_to(startx, mid - height / 5,
210
211
                             startx, mid - height / 5,