/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-01-21 15:37:34 UTC
  • mfrom: (423.6.1 gtk)
  • mto: (423.1.6 trunk)
  • mto: This revision was merged to the branch mainline in revision 429.
  • Revision ID: daniel.schierbeck@gmail.com-20080121153734-ty6ngphqwfqxd3uj
MergedĀ Ali'sĀ changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
212
212
        ctx.stroke()
213
213
 
214
214
    def render_tags(self, ctx, pango_ctx, cell_area, box_size):
 
215
        # colour ID used in self.set_colour on the tags
 
216
        TAG_COLOUR_ID = 1
 
217
 
215
218
        (column, colour) = self.node
216
219
        tag_layout = pango.Layout(pango_ctx)
217
220
 
239
242
            ctx.line_to(x0, y0 + text_height)
240
243
            ctx.line_to(x0 - box_size / 3, y0 + text_height / 2)
241
244
 
242
 
            self.set_colour(ctx, colour, 0.0, 0.5)
 
245
            self.set_colour(ctx, TAG_COLOUR_ID, 0.0, 0.5)
243
246
            ctx.stroke_preserve()
244
247
 
245
 
            self.set_colour(ctx, colour, 0.5, 1.0)
 
248
            self.set_colour(ctx, TAG_COLOUR_ID, 0.5, 1.0)
246
249
            ctx.fill()
247
250
 
248
251
            # Draw the tag text
249
 
            self.set_colour(ctx, 0.0, 0.0, 0.0)
 
252
            self.set_colour(ctx, 0, 0.0, 0.0)
250
253
            ctx.move_to(x0, y0)
251
254
            ctx.show_layout(tag_layout)
252
255