3394: Pango Warning for Fanchartview during start

svn: r13756
This commit is contained in:
Doug Blank 2009-12-11 03:19:06 +00:00
parent 91fb951d04
commit 8b326b49d2
2 changed files with 4 additions and 4 deletions

View File

@ -126,7 +126,7 @@ class FanChartWidget(gtk.Widget):
self.set_generations(self.generations)
self.center = 50 # pixel radius of center
self.layout = self.create_pango_layout('cairo')
self.layout.set_font_description(pango.FontDescription("sans serif 8"))
self.layout.set_font_description(pango.FontDescription("sans 8"))
def reset_generations(self):
"""
@ -335,7 +335,7 @@ class FanChartWidget(gtk.Widget):
for i in range(len(text)):
cr.save()
layout = self.create_pango_layout(text[i])
layout.set_font_description(pango.FontDescription("sans serif 8"))
layout.set_font_description(pango.FontDescription("sans 8"))
angle = 360.0 * i / (radius * self.degrees_per_radius) + pos
cr.set_source_rgb(0, 0, 0) # black
cr.rotate(angle * (math.pi / 180));

View File

@ -142,7 +142,7 @@ class FanChartWidget(gtk.Widget):
self.set_generations(self.generations)
self.center = 50 # pixel radius of center
self.layout = self.create_pango_layout('cairo')
self.layout.set_font_description(pango.FontDescription("sans serif 8"))
self.layout.set_font_description(pango.FontDescription("sans 8"))
def reset_generations(self):
"""
@ -350,7 +350,7 @@ class FanChartWidget(gtk.Widget):
for i in range(len(text)):
cr.save()
layout = self.create_pango_layout(text[i])
layout.set_font_description(pango.FontDescription("sans serif 8"))
layout.set_font_description(pango.FontDescription("sans 8"))
angle = 360.0 * i / (radius * self.degrees_per_radius) + pos
cr.set_source_rgb(0, 0, 0) # black
cr.rotate(angle * (math.pi / 180));