/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-23 16:24:25 UTC
  • mfrom: (423.1.7 trunk)
  • mto: (423.1.8 trunk)
  • mto: This revision was merged to the branch mainline in revision 429.
  • Revision ID: daniel.schierbeck@gmail.com-20080123162425-qd1zpohg46qmxbuy
Merged with trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
216
216
        TAG_COLOUR_ID = 1
217
217
 
218
218
        (column, colour) = self.node
 
219
 
 
220
        font_desc = pango.FontDescription()
 
221
        font_desc.set_size(pango.SCALE * 7)
 
222
 
219
223
        tag_layout = pango.Layout(pango_ctx)
 
224
        tag_layout.set_font_description(font_desc)
220
225
 
221
226
        # The width of the tag label stack
222
227
        width = 0
223
228
 
224
229
        for tag_idx, tag in enumerate(self.tags):
225
 
            tag_layout.set_markup(" <small>" + tag + "</small> ")
 
230
            tag_layout.set_text(" " + tag + " ")
226
231
            text_width, text_height = tag_layout.get_pixel_size()
227
232
 
228
233
            x0 = cell_area.x + \