From 8b326b49d29ec77dcc098e932bd14bfbf7553652 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Fri, 11 Dec 2009 03:19:06 +0000 Subject: [PATCH] 3394: Pango Warning for Fanchartview during start svn: r13756 --- src/plugins/gramplet/FanChartGramplet.py | 4 ++-- src/plugins/view/fanchartview.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plugins/gramplet/FanChartGramplet.py b/src/plugins/gramplet/FanChartGramplet.py index b3a3f018a..a1e0fb2ca 100644 --- a/src/plugins/gramplet/FanChartGramplet.py +++ b/src/plugins/gramplet/FanChartGramplet.py @@ -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)); diff --git a/src/plugins/view/fanchartview.py b/src/plugins/view/fanchartview.py index f87a37c54..910ffcb6b 100644 --- a/src/plugins/view/fanchartview.py +++ b/src/plugins/view/fanchartview.py @@ -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));